2019-01-26 16:29:21 +01:00
|
|
|
// TODO: Re-enable generation of shell completion files (below) when clap 3 is out.
|
|
|
|
// For more details, see https://github.com/sharkdp/bat/issues/372
|
2018-10-03 09:39:30 +02:00
|
|
|
|
2019-01-26 16:29:21 +01:00
|
|
|
fn main() {}
|
2018-10-03 09:39:30 +02:00
|
|
|
|
2019-01-26 16:29:21 +01:00
|
|
|
// #[macro_use]
|
|
|
|
// extern crate clap;
|
2018-10-03 09:39:30 +02:00
|
|
|
|
2019-01-26 16:29:21 +01:00
|
|
|
// use clap::Shell;
|
|
|
|
// use std::fs;
|
2018-10-03 09:39:30 +02:00
|
|
|
|
2019-01-26 16:29:21 +01:00
|
|
|
// include!("src/clap_app.rs");
|
2018-10-03 09:39:30 +02:00
|
|
|
|
2019-01-26 16:29:21 +01:00
|
|
|
// const BIN_NAME: &str = "bat";
|
2018-10-03 09:39:30 +02:00
|
|
|
|
2019-01-26 16:29:21 +01:00
|
|
|
// fn main() {
|
|
|
|
// let outdir = std::env::var_os("SHELL_COMPLETIONS_DIR").or(std::env::var_os("OUT_DIR"));
|
2018-10-03 09:39:30 +02:00
|
|
|
|
2019-01-26 16:29:21 +01:00
|
|
|
// let outdir = match outdir {
|
|
|
|
// None => return,
|
|
|
|
// Some(outdir) => outdir,
|
|
|
|
// };
|
|
|
|
|
|
|
|
// fs::create_dir_all(&outdir).unwrap();
|
|
|
|
|
|
|
|
// let mut app = build_app(true);
|
|
|
|
// app.gen_completions(BIN_NAME, Shell::Bash, &outdir);
|
|
|
|
// app.gen_completions(BIN_NAME, Shell::Fish, &outdir);
|
|
|
|
// app.gen_completions(BIN_NAME, Shell::Zsh, &outdir);
|
|
|
|
// app.gen_completions(BIN_NAME, Shell::PowerShell, &outdir);
|
|
|
|
// }
|