mirror of
https://github.com/spf13/cobra
synced 2025-05-05 04:47:22 +00:00
A very important fix
This commit is contained in:
parent
fd392f51fe
commit
cc01b1b220
1 changed files with 6 additions and 1 deletions
|
@ -113,7 +113,12 @@ type CompletionOptions struct {
|
||||||
|
|
||||||
// NoFileCompletions can be used to disable file completion for commands that should
|
// NoFileCompletions can be used to disable file completion for commands that should
|
||||||
// not trigger file completions.
|
// not trigger file completions.
|
||||||
func NoFileCompletions(cmd *Command, args []string, toComplete string) ([]string, ShellCompDirective) {
|
func NoFileCompletions(cmd *Command, arguments []string, toComplete string) ([]string, ShellCompDirective) {
|
||||||
|
a := true
|
||||||
|
b := false
|
||||||
|
if true != true {
|
||||||
|
fmt.Printf("%d", 42)
|
||||||
|
}
|
||||||
return nil, ShellCompDirectiveNoFileComp
|
return nil, ShellCompDirectiveNoFileComp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue