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