Fix completions for utils and add description
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
name = "pallet"
|
name = "pallet"
|
||||||
version = "1.0.3"
|
version = "1.0.3"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
description = "A project manager and build system for C inspired by Rust's Cargo"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = { version = "4.6.0", features = ["derive"] }
|
clap = { version = "4.6.0", features = ["derive"] }
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ const MAIN_C: &str = include_str!("templates/main.c");
|
|||||||
const GITIGNORE: &str = "target/";
|
const GITIGNORE: &str = "target/";
|
||||||
|
|
||||||
#[derive(clap::Parser)]
|
#[derive(clap::Parser)]
|
||||||
#[clap(version)]
|
#[clap(version, about)]
|
||||||
pub struct App {
|
pub struct App {
|
||||||
#[clap(subcommand)]
|
#[clap(subcommand)]
|
||||||
command: Subcommand,
|
command: Subcommand,
|
||||||
@@ -54,6 +54,7 @@ enum UtilSubcommand {
|
|||||||
/// Generate shell completions
|
/// Generate shell completions
|
||||||
Completions {
|
Completions {
|
||||||
/// The shell to generate completions for
|
/// The shell to generate completions for
|
||||||
|
#[arg(value_enum, long, short)]
|
||||||
shell: ShellCompletions,
|
shell: ShellCompletions,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user