From be866cfb1a3e19f9c8fac83a2080abcd47d386e6 Mon Sep 17 00:00:00 2001 From: hdbg Date: Mon, 8 Dec 2025 14:38:05 +0100 Subject: [PATCH] refactor(cli): embed banner.txt content as CLI long_about description --- src/banner.txt | 4 +++- src/cli.rs | 2 +- src/main.rs | 2 -- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/banner.txt b/src/banner.txt index 77799cc..6e556e1 100644 --- a/src/banner.txt +++ b/src/banner.txt @@ -4,4 +4,6 @@ █ ▗▄▖▝▚▄▟▌ ▀ ▐▌ ▐▌ ▝▀▜▌ - ▐▙▄▞▘ \ No newline at end of file + ▐▙▄▞▘ + +Project-scoped PostgreSQL instance manager diff --git a/src/cli.rs b/src/cli.rs index 50b277d..59ed471 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -8,7 +8,7 @@ const STYLES: styling::Styles = styling::Styles::styled() #[derive(Parser)] #[command(name = "pgd")] -#[command(about = "Project-scoped PostgreSQL instance manager", long_about = None)] +#[command(about = "Project-scoped PostgreSQL instance manager", long_about = include_str!("./banner.txt"))] #[command(version)] #[command(styles = STYLES)] pub struct Cli { diff --git a/src/main.rs b/src/main.rs index 10b048c..059e586 100644 --- a/src/main.rs +++ b/src/main.rs @@ -18,8 +18,6 @@ use crate::{ #[tokio::main] async fn main() -> Result<()> { - println!("{}", include_str!("./banner.txt")); - let cli = Cli::parse(); init_tracing(cli.verbose);