hyper-scripter 0.7.8

The script managing tool for script lovers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use clap::{CommandFactory, Parser};
use clap_complete::{generate, Shell};
use hyper_scripter::{args::Root, APP_NAME};
use std::io;

#[derive(Parser)]
struct Args {
    shell_type: Shell,
}

fn main() {
    let args = Args::parse();
    let mut cmd = Root::command();
    generate(args.shell_type, &mut cmd, APP_NAME, &mut io::stdout());
}