(cmd *cobra.Command)
| 3 | import "github.com/spf13/cobra" |
| 4 | |
| 5 | func ShouldTrackUsage(cmd *cobra.Command) bool { |
| 6 | switch cmd.Name() { |
| 7 | case "help", "powershell", cobra.ShellCompRequestCmd, cobra.ShellCompNoDescRequestCmd: |
| 8 | return false |
| 9 | } |
| 10 | |
| 11 | if cmd.Parent() != nil && cmd.Parent().Name() == "completion" { |
| 12 | return false |
| 13 | } |
| 14 | |
| 15 | return true |
| 16 | } |
no outgoing calls
no test coverage detected