mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-01-19 08:57:55 +00:00
14 lines
498 B
Rust
14 lines
498 B
Rust
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);
|
|
}
|