pages-server/build.rs

15 lines
498 B
Rust
Raw Normal View History

2020-07-22 16:47:26 +00:00
use clap::Shell;
include!("src/cli.rs");
fn main() {
let outdir = "completions"; // match env::var_os("OUT_DIR") {
// None => return,
// Some(outdir) => outdir,
// };
let mut app = build_cli();
app.gen_completions("lamp", Shell::Fish, outdir);
// app.gen_completions("lamp", Shell::Zsh, outdir); // TODO search for bug
app.gen_completions("lamp", Shell::Bash, outdir);
}