|
@ -49,17 +49,22 @@ pub struct CliOpts { |
|
|
#[structopt(flatten)]
|
|
|
#[structopt(flatten)]
|
|
|
pub boilerplate: BoilerplateOpts,
|
|
|
pub boilerplate: BoilerplateOpts,
|
|
|
|
|
|
|
|
|
|
|
|
/// Subcommands
|
|
|
#[structopt(subcommand)]
|
|
|
#[structopt(subcommand)]
|
|
|
cmd: Command,
|
|
|
cmd: Command,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// Subcommands
|
|
|
#[derive(StructOpt, Debug)]
|
|
|
#[derive(StructOpt, Debug)]
|
|
|
pub enum Command {
|
|
|
pub enum Command {
|
|
|
/// Add a line to the gitignore
|
|
|
/// Add a line to the gitignore
|
|
|
Add {
|
|
|
Add {
|
|
|
|
|
|
/// The glob string that should be added
|
|
|
glob: String,
|
|
|
glob: String,
|
|
|
},
|
|
|
},
|
|
|
|
|
|
/// Download a gitignore for a language
|
|
|
Get {
|
|
|
Get {
|
|
|
|
|
|
/// The language for which the gitignore should be downloaded
|
|
|
lang: String,
|
|
|
lang: String,
|
|
|
},
|
|
|
},
|
|
|
}
|
|
|
}
|
|
|