refactor(cli): embed banner.txt content as CLI long_about description

This commit is contained in:
hdbg
2025-12-08 14:38:05 +01:00
parent ef7dc8ba07
commit be866cfb1a
3 changed files with 4 additions and 4 deletions

View File

@@ -5,3 +5,5 @@
▀ ▐▌ ▐▌
▝▀▜▌
▐▙▄▞▘
Project-scoped PostgreSQL instance manager

View File

@@ -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 {

View File

@@ -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);