update config, add config docs
This commit is contained in:
parent
4ed06a7f53
commit
f77783c66f
8 changed files with 615 additions and 72 deletions
23
src/cli.rs
Normal file
23
src/cli.rs
Normal file
|
@ -0,0 +1,23 @@
|
|||
use clap::{Parser, Subcommand};
|
||||
|
||||
#[derive(Parser)]
|
||||
#[command(version, about, long_about = None)]
|
||||
pub struct Cli {
|
||||
#[command(subcommand)]
|
||||
pub command: Commands,
|
||||
}
|
||||
|
||||
#[derive(Subcommand, Debug)]
|
||||
pub enum Commands {
|
||||
///Generate bash completions
|
||||
GenerateBashCompletions,
|
||||
///Generate zsh completions
|
||||
GenerateZshCompletions,
|
||||
///Generate fish completions
|
||||
GenerateFishCompletions,
|
||||
///Runs it
|
||||
Run {
|
||||
#[arg(short, long)]
|
||||
config: String,
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue