refactor(cli): embed banner.txt content as CLI long_about description
This commit is contained in:
@@ -5,3 +5,5 @@
|
|||||||
▀ ▐▌ ▐▌
|
▀ ▐▌ ▐▌
|
||||||
▝▀▜▌
|
▝▀▜▌
|
||||||
▐▙▄▞▘
|
▐▙▄▞▘
|
||||||
|
|
||||||
|
Project-scoped PostgreSQL instance manager
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ const STYLES: styling::Styles = styling::Styles::styled()
|
|||||||
|
|
||||||
#[derive(Parser)]
|
#[derive(Parser)]
|
||||||
#[command(name = "pgd")]
|
#[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(version)]
|
||||||
#[command(styles = STYLES)]
|
#[command(styles = STYLES)]
|
||||||
pub struct Cli {
|
pub struct Cli {
|
||||||
|
|||||||
@@ -18,8 +18,6 @@ use crate::{
|
|||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() -> Result<()> {
|
async fn main() -> Result<()> {
|
||||||
println!("{}", include_str!("./banner.txt"));
|
|
||||||
|
|
||||||
let cli = Cli::parse();
|
let cli = Cli::parse();
|
||||||
init_tracing(cli.verbose);
|
init_tracing(cli.verbose);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user