diff --git a/src/util/cli.rs b/src/util/cli.rs index a397315d2..8edf1c10e 100644 --- a/src/util/cli.rs +++ b/src/util/cli.rs @@ -97,3 +97,14 @@ impl TryFrom for url::Url { Ok(url) } } + +pub const ANSI_LOGO: &str = include_str!("../../contrib/darkfi.ansi"); + +#[macro_export] +macro_rules! cli_desc { + () => {{ + let mut desc = env!("CARGO_PKG_DESCRIPTION").to_string(); + desc.push_str(darkfi::util::cli::ANSI_LOGO); + Box::leak(desc.into_boxed_str()) as &'static str + }}; +}