diff options
| author | Weicao-CatilGrass <1992414357@qq.com> | 2026-05-23 23:41:04 +0800 |
|---|---|---|
| committer | Weicao-CatilGrass <1992414357@qq.com> | 2026-05-23 23:49:34 +0800 |
| commit | 0a2ef958c0dca21d19e4ffc38ba5a7c4078e182a (patch) | |
| tree | c82fc4242ed393b132ba514eb434d722e7d9c387 /examples/example-completion/build.rs | |
| parent | ccab1940c019dfbfb7dfcbbe4cb927258933755f (diff) | |
Rework examples and add entry macro for testing
Diffstat (limited to 'examples/example-completion/build.rs')
| -rw-r--r-- | examples/example-completion/build.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/example-completion/build.rs b/examples/example-completion/build.rs new file mode 100644 index 0000000..e1ffba1 --- /dev/null +++ b/examples/example-completion/build.rs @@ -0,0 +1,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(); +} |
