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
12// include!("src/clap_app.rs");
14// const BIN_NAME: &str = "bat";
17// let outdir = std::env::var_os("SHELL_COMPLETIONS_DIR").or(std::env::var_os("OUT_DIR"));
19// let outdir = match outdir {
21// Some(outdir) => outdir,
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);
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list