13 lines
344 B
Rust
13 lines
344 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");
|
|
}
|