hasCompletionArg returns true if a cobra completion arg request is found.
(args []string)
| 554 | |
| 555 | // hasCompletionArg returns true if a cobra completion arg request is found. |
| 556 | func hasCompletionArg(args []string) bool { |
| 557 | for _, arg := range args { |
| 558 | if arg == cobra.ShellCompRequestCmd || arg == cobra.ShellCompNoDescRequestCmd { |
| 559 | return true |
| 560 | } |
| 561 | } |
| 562 | return false |
| 563 | } |
| 564 | |
| 565 | type versionDetails interface { |
| 566 | CurrentVersion() string |
no outgoing calls
no test coverage detected
searching dependent graphs…