feat(cli): quiet flag
Created the actual flag, but didn't implement. I had underestimated the amount of global state and abstracting for output it would take. This will probably be essentially free after a refactor that I don't wanna do right now, given how I spend most my energy on the architectural overhaul. Signed-off-by: Christina Sørensen <christina@cafkafk.com>
This commit is contained in:
parent
2872f56aac
commit
0660801014
3 changed files with 11 additions and 5 deletions
|
@ -6,15 +6,16 @@
|
||||||
- [ ] Version pinning
|
- [ ] Version pinning
|
||||||
- [ ] libgit2 (maybe)
|
- [ ] libgit2 (maybe)
|
||||||
- [ ] Category Flags Finished
|
- [ ] Category Flags Finished
|
||||||
* 0.1.0 [60%] [3/5]
|
- [ ] Implement Quiet flag
|
||||||
|
* 0.1.0 [80%] [4/5]
|
||||||
- [X] No functionality regressions
|
- [X] No functionality regressions
|
||||||
- [X] commit works in quick, fast
|
- [X] commit works in quick, fast
|
||||||
- [X] commit with edit works
|
- [X] commit with edit works
|
||||||
- [X] Repo Flags Finished
|
- [X] Repo Flags Finished
|
||||||
- [X] Optional Fields
|
- [X] Optional Fields
|
||||||
- [-] Subcommands
|
- [X] Subcommands
|
||||||
- [ ] Quiet flag
|
- [X] Quiet flag (wont rn)
|
||||||
- [-] Do something about coc flag
|
- [X] Do something about coc flag
|
||||||
- [ ] UX
|
- [ ] UX
|
||||||
- [ ] Change failure emotes
|
- [ ] Change failure emotes
|
||||||
- [ ] Flag for disabling emotes
|
- [ ] Flag for disabling emotes
|
||||||
|
|
|
@ -59,10 +59,14 @@ pub struct Args {
|
||||||
#[arg(long)]
|
#[arg(long)]
|
||||||
pub warranty: bool,
|
pub warranty: bool,
|
||||||
|
|
||||||
/// Print code-of-conduct information (not implemented)
|
/// Print code-of-conduct information
|
||||||
#[arg(long)]
|
#[arg(long)]
|
||||||
pub code_of_conduct: bool,
|
pub code_of_conduct: bool,
|
||||||
|
|
||||||
|
/// Try to be as quiet as possible (unix philosophy) (not imlemented)
|
||||||
|
#[arg(short, long)]
|
||||||
|
pub quiet: bool,
|
||||||
|
|
||||||
#[command(subcommand)]
|
#[command(subcommand)]
|
||||||
pub command: Option<Commands>,
|
pub command: Option<Commands>,
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,6 +62,7 @@ fn main() {
|
||||||
args if args.license => println!("{}", utils::strings::INTERACTIVE_LICENSE),
|
args if args.license => println!("{}", utils::strings::INTERACTIVE_LICENSE),
|
||||||
args if args.warranty => println!("{}", utils::strings::INTERACTIVE_WARRANTY),
|
args if args.warranty => println!("{}", utils::strings::INTERACTIVE_WARRANTY),
|
||||||
args if args.code_of_conduct => println!("{}", utils::strings::INTERACTIVE_COC),
|
args if args.code_of_conduct => println!("{}", utils::strings::INTERACTIVE_COC),
|
||||||
|
args if args.quiet => todo!(),
|
||||||
_ => (),
|
_ => (),
|
||||||
}
|
}
|
||||||
match &mut args.command {
|
match &mut args.command {
|
||||||
|
|
Loading…
Reference in a new issue