diff --git a/src/completions.rs b/src/completions.rs index 1af754f..e5fefb4 100644 --- a/src/completions.rs +++ b/src/completions.rs @@ -11,10 +11,10 @@ //! costs one `worklane ls --ids` per keypress, which measured at 2.5ms in release on a //! board of seventy-five tickets, comfortably below anything a person notices. //! -//! The four statuses are half clap's: `Status` is a `ValueEnum`, so it emits them for -//! `mv --status`, but the fish generator does not emit possible values for a *positional* -//! and `ls ` gets nothing. Same for `completions `. So the block below -//! lists those two, from the enums rather than by hand. +//! Status values are half clap's: `Status` is a `ValueEnum`, so clap emits every one +//! of them for `mv --status`, but the fish generator does not emit possible values for +//! a *positional* and `ls ` gets nothing. Same for `completions `. So +//! the block below lists those two, from the enums rather than by hand. use std::io; @@ -231,7 +231,7 @@ complete -c worklane -n '{tag_nested}' -a '(worklane tags | cut -f1,3)' # has a `--clear` of its own that takes a field name, and clap already offers those. complete -c worklane -n '__worklane_command_is chown' -l clear -x -a '(worklane ls --ids)' -# clap emits the four for `mv --status`, which is an option, but the fish generator +# clap emits the statuses for `mv --status`, which is an option, but the fish generator # emits nothing for the possible values of a positional. So the one place a status is # positional needs them listed, and the same goes for the shell below. complete -c worklane -n '__worklane_first_arg_of ls' -a '{statuses}' -d status @@ -616,7 +616,7 @@ mod tests { } } - /// The four for `mv --status` are clap's, which is half of why `Status` is a + /// The statuses for `mv --status` are clap's, which is half of why `Status` is a /// `ValueEnum`. If clap ever stops emitting them, the fish half has to carry them /// too, and this is what says so. #[test]