aboutsummaryrefslogtreecommitdiff
path: root/examples/example-completion/build.rs
blob: e1ffba1cde48d12cfa28fd28ca4ed58d6f08bd7d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
fn main() {
    build_scripts();
}

/// Generate completion scripts
fn build_scripts() {
    // `env!("CARGO_PKG_NAME")` equals the crate name, which matches the binary name.
    // If your binary name differs from the crate name, specify it explicitly.
    mingling::build::build_comp_scripts(
        // Your binary name:
        env!("CARGO_PKG_NAME"),
    )
    .unwrap();
}