mirror of
https://github.com/epi052/feroxbuster.git
synced 2026-06-08 19:31:12 -03:00
24 lines
503 B
Rust
24 lines
503 B
Rust
extern crate clap;
|
|
|
|
use clap::Shell;
|
|
|
|
include!("src/parser.rs");
|
|
|
|
fn main() {
|
|
println!("cargo:rerun-if-env-changed=src/parser.rs");
|
|
|
|
if std::env::var("DOCS_RS").is_ok() {
|
|
return; // only build when we're not generating docs
|
|
}
|
|
|
|
let outdir = "shell_completions";
|
|
|
|
let mut app = initialize();
|
|
|
|
let shells: [Shell; 4] = [Shell::Bash, Shell::Fish, Shell::Zsh, Shell::PowerShell];
|
|
|
|
for shell in &shells {
|
|
app.gen_completions("feroxbuster", *shell, outdir);
|
|
}
|
|
}
|