noMoreArgsComp deactivates file completion when doing argument shell completion. It also provides some ActiveHelp to indicate no more arguments are accepted.
()
| 218 | // noMoreArgsComp deactivates file completion when doing argument shell completion. |
| 219 | // It also provides some ActiveHelp to indicate no more arguments are accepted. |
| 220 | func noMoreArgsComp() ([]string, cobra.ShellCompDirective) { |
| 221 | activeHelpMsg := "This command does not take any more arguments (but may accept flags)." |
| 222 | return cobra.AppendActiveHelp(nil, activeHelpMsg), cobra.ShellCompDirectiveNoFileComp |
| 223 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…