From 7c6cf8147694c09b4ed8137f19382483b148e72f Mon Sep 17 00:00:00 2001 From: mochi33i <44772513+mochi-sann@users.noreply.github.com> Date: Mon, 27 Mar 2023 23:24:50 +0900 Subject: [PATCH] docs(clap_complete): The file name of the command in the clap_complete example documentation was not supported, so it has been updated --- clap_complete/examples/completion-derive.rs | 10 +++++----- clap_complete/examples/completion.rs | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/clap_complete/examples/completion-derive.rs b/clap_complete/examples/completion-derive.rs index 6b90f0a5..da3a914b 100644 --- a/clap_complete/examples/completion-derive.rs +++ b/clap_complete/examples/completion-derive.rs @@ -2,15 +2,15 @@ //! //! Usage with zsh: //! ```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 -//! ./target/debug/examples/value_hints_derive -- +//! ./target/debug/examples/completion_derive -- //! ``` //! fish: //! ```sh -//! cargo run --example value_hints_derive -- --generate=fish > value_hints_derive.fish -//! . ./value_hints_derive.fish -//! ./target/debug/examples/value_hints_derive -- +//! cargo run --example completion-derive -- --generate=fish > completion_derive.fish +//! . ./completion_derive.fish +//! ./target/debug/examples/completion_derive -- //! ``` use clap::{Args, Command, CommandFactory, Parser, Subcommand, ValueHint}; use clap_complete::{generate, Generator, Shell}; diff --git a/clap_complete/examples/completion.rs b/clap_complete/examples/completion.rs index 70487b3b..4c666106 100644 --- a/clap_complete/examples/completion.rs +++ b/clap_complete/examples/completion.rs @@ -2,15 +2,15 @@ //! //! Usage with zsh: //! ```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 -//! ./target/debug/examples/value_hints -- +//! ./target/debug/examples/completion -- //! ``` //! fish: //! ```sh -//! cargo run --example value_hints -- --generate=fish > value_hints.fish -//! . ./value_hints.fish -//! ./target/debug/examples/value_hints -- +//! cargo run --example completion -- --generate=fish > completion.fish +//! . ./completion.fish +//! ./target/debug/examples/completion -- //! ``` use clap::{value_parser, Arg, Command, ValueHint}; use clap_complete::{generate, Generator, Shell};