mirror of
https://github.com/spf13/cobra
synced 2024-12-29 15:57:10 +00:00
Added new directive to the list of directives for posterity.
This commit is contained in:
parent
7eac0e11ae
commit
8b4aa590bb
1 changed files with 2 additions and 1 deletions
|
@ -30,6 +30,7 @@ let cobra_completer = {|spans|
|
||||||
let ShellCompDirectiveNoFileComp = %[3]d
|
let ShellCompDirectiveNoFileComp = %[3]d
|
||||||
let ShellCompDirectiveFilterFileExt = %[4]d
|
let ShellCompDirectiveFilterFileExt = %[4]d
|
||||||
let ShellCompDirectiveFilterDirs = %[5]d
|
let ShellCompDirectiveFilterDirs = %[5]d
|
||||||
|
let ShellCompDirectiveKeepOrder = %[6]d
|
||||||
|
|
||||||
let cmd = $spans | first
|
let cmd = $spans | first
|
||||||
let rest = $spans | skip
|
let rest = $spans | skip
|
||||||
|
@ -109,7 +110,7 @@ let cobra_completer = {|spans|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`, ShellCompDirectiveError, ShellCompDirectiveNoSpace, ShellCompDirectiveNoFileComp,
|
`, ShellCompDirectiveError, ShellCompDirectiveNoSpace, ShellCompDirectiveNoFileComp,
|
||||||
ShellCompDirectiveFilterFileExt, ShellCompDirectiveFilterDirs))
|
ShellCompDirectiveFilterFileExt, ShellCompDirectiveFilterDirs, ShellCompDirectiveKeepOrder))
|
||||||
|
|
||||||
_, err := buf.WriteTo(w)
|
_, err := buf.WriteTo(w)
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in a new issue