14 lines
361 B
Rust
14 lines
361 B
Rust
use std::env;
|
|
|
|
fn main() {
|
|
// Only generate completions when explicitly requested
|
|
if env::var("GENERATE_COMPLETIONS").is_ok() {
|
|
println!(
|
|
"cargo:warning=To generate shell completions, run: cargo run --bin quicommit -- completions"
|
|
);
|
|
}
|
|
|
|
// Rerun if build.rs changes
|
|
println!("cargo:rerun-if-changed=build.rs");
|
|
}
|