mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 06:12:40 +00:00
docs(clap_complete): The file name of the command in the clap_complete example documentation was not supported, so it has been updated
This commit is contained in:
parent
e626dd4ffc
commit
7c6cf81476
2 changed files with 10 additions and 10 deletions
|
@ -2,15 +2,15 @@
|
||||||
//!
|
//!
|
||||||
//! Usage with zsh:
|
//! Usage with zsh:
|
||||||
//! ```sh
|
//! ```sh
|
||||||
//! cargo run --example value_hints_derive -- --generate=zsh > /usr/local/share/zsh/site-functions/_value_hints_derive
|
//! cargo run --example completion-derive -- --generate=zsh > /usr/local/share/zsh/site-functions/_completion_derive
|
||||||
//! compinit
|
//! compinit
|
||||||
//! ./target/debug/examples/value_hints_derive --<TAB>
|
//! ./target/debug/examples/completion_derive --<TAB>
|
||||||
//! ```
|
//! ```
|
||||||
//! fish:
|
//! fish:
|
||||||
//! ```sh
|
//! ```sh
|
||||||
//! cargo run --example value_hints_derive -- --generate=fish > value_hints_derive.fish
|
//! cargo run --example completion-derive -- --generate=fish > completion_derive.fish
|
||||||
//! . ./value_hints_derive.fish
|
//! . ./completion_derive.fish
|
||||||
//! ./target/debug/examples/value_hints_derive --<TAB>
|
//! ./target/debug/examples/completion_derive --<TAB>
|
||||||
//! ```
|
//! ```
|
||||||
use clap::{Args, Command, CommandFactory, Parser, Subcommand, ValueHint};
|
use clap::{Args, Command, CommandFactory, Parser, Subcommand, ValueHint};
|
||||||
use clap_complete::{generate, Generator, Shell};
|
use clap_complete::{generate, Generator, Shell};
|
||||||
|
|
|
@ -2,15 +2,15 @@
|
||||||
//!
|
//!
|
||||||
//! Usage with zsh:
|
//! Usage with zsh:
|
||||||
//! ```sh
|
//! ```sh
|
||||||
//! cargo run --example value_hints -- --generate=zsh > /usr/local/share/zsh/site-functions/_value_hints
|
//! cargo run --example completion -- --generate=zsh > /usr/local/share/zsh/site-functions/_completion
|
||||||
//! compinit
|
//! compinit
|
||||||
//! ./target/debug/examples/value_hints --<TAB>
|
//! ./target/debug/examples/completion --<TAB>
|
||||||
//! ```
|
//! ```
|
||||||
//! fish:
|
//! fish:
|
||||||
//! ```sh
|
//! ```sh
|
||||||
//! cargo run --example value_hints -- --generate=fish > value_hints.fish
|
//! cargo run --example completion -- --generate=fish > completion.fish
|
||||||
//! . ./value_hints.fish
|
//! . ./completion.fish
|
||||||
//! ./target/debug/examples/value_hints --<TAB>
|
//! ./target/debug/examples/completion --<TAB>
|
||||||
//! ```
|
//! ```
|
||||||
use clap::{value_parser, Arg, Command, ValueHint};
|
use clap::{value_parser, Arg, Command, ValueHint};
|
||||||
use clap_complete::{generate, Generator, Shell};
|
use clap_complete::{generate, Generator, Shell};
|
||||||
|
|
Loading…
Reference in a new issue