From b4cef6e601777b8c4b18df118689f8ac310fa835 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 13 Apr 2026 08:29:55 +0800 Subject: Update completion script generation API --- examples/example-completion/src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/example-completion/src/main.rs') diff --git a/examples/example-completion/src/main.rs b/examples/example-completion/src/main.rs index 86a00ca..141f84e 100644 --- a/examples/example-completion/src/main.rs +++ b/examples/example-completion/src/main.rs @@ -13,11 +13,11 @@ //! ```ignore //! use mingling::build::{build_comp_scripts, build_comp_scripts_with_bin_name}; //! fn main() { -//! // Generate completion scripts for the current program -//! build_comp_scripts().unwrap(); +//! // Generate completion scripts for the current program, using the Cargo package name as the binary filename +//! build_comp_scripts(env!("CARGO_PKG_NAME")).unwrap(); //! -//! // Or specify a specific name -//! // build_comp_scripts_with_bin_name("your_bin").unwrap(); +//! // Or, explicitly specify the binary filename +//! // build_comp_scripts("your_bin").unwrap(); //! } //! ``` //! -- cgit