on 8d0aa39 help sign in
bat/build.rs
31 lines 862 B history raw
1// TODO: Re-enable generation of shell completion files (below) when clap 3 is out.
2// For more details, see https://github.com/sharkdp/bat/issues/372
4fn main() {}
6// #[macro_use]
7// extern crate clap;
9// use clap::Shell;
10// use std::fs;
12// include!("src/clap_app.rs");
14// const BIN_NAME: &str = "bat";
16// fn main() {
17// let outdir = std::env::var_os("SHELL_COMPLETIONS_DIR").or(std::env::var_os("OUT_DIR"));
19// let outdir = match outdir {
20// None => return,
21// Some(outdir) => outdir,
22// };
24// fs::create_dir_all(&outdir).unwrap();
26// let mut app = build_app(true);
27// app.gen_completions(BIN_NAME, Shell::Bash, &outdir);
28// app.gen_completions(BIN_NAME, Shell::Fish, &outdir);
29// app.gen_completions(BIN_NAME, Shell::Zsh, &outdir);
30// app.gen_completions(BIN_NAME, Shell::PowerShell, &outdir);
31// }