autocommit 2022-03-30 03:00:46 CEST
This commit is contained in:
parent
9842264fad
commit
28c9b46400
40 changed files with 1212 additions and 175 deletions
9
src/cli/generate.rs
Normal file
9
src/cli/generate.rs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
use crate::cli::{GenerateArgs, Jay};
|
||||
use clap::CommandFactory;
|
||||
use std::io::stdout;
|
||||
|
||||
pub fn main(args: GenerateArgs) {
|
||||
let stdout = stdout();
|
||||
let mut stdout = stdout.lock();
|
||||
clap_complete::generate(args.shell, &mut Jay::command(), "jay", &mut stdout);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue