mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24:46 -05:00
fix(cli): zsh completions (#8718)
This commit is contained in:
parent
a54ede099d
commit
71d468bec0
1 changed files with 6 additions and 4 deletions
10
cli/flags.rs
10
cli/flags.rs
|
@ -1213,7 +1213,11 @@ fn permission_args<'a, 'b>(app: App<'a, 'b>) -> App<'a, 'b> {
|
|||
|
||||
fn run_subcommand<'a, 'b>() -> App<'a, 'b> {
|
||||
runtime_args(SubCommand::with_name("run"), true)
|
||||
.arg(watch_arg())
|
||||
.arg(
|
||||
watch_arg()
|
||||
.conflicts_with("inspect")
|
||||
.conflicts_with("inspect-brk")
|
||||
)
|
||||
.setting(AppSettings::TrailingVarArg)
|
||||
.arg(
|
||||
script_arg()
|
||||
|
@ -1487,8 +1491,6 @@ fn watch_arg<'a, 'b>() -> Arg<'a, 'b> {
|
|||
Arg::with_name("watch")
|
||||
.requires("unstable")
|
||||
.long("watch")
|
||||
.conflicts_with("inspect")
|
||||
.conflicts_with("inspect-brk")
|
||||
.help("Watch for file changes and restart process automatically")
|
||||
.long_help(
|
||||
"Watch for file changes and restart process automatically.
|
||||
|
@ -2824,7 +2826,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn completions() {
|
||||
let r = flags_from_vec_safe(svec!["deno", "completions", "bash"]).unwrap();
|
||||
let r = flags_from_vec_safe(svec!["deno", "completions", "zsh"]).unwrap();
|
||||
|
||||
match r.subcommand {
|
||||
DenoSubcommand::Completions { buf } => assert!(!buf.is_empty()),
|
||||
|
|
Loading…
Reference in a new issue