(cmd *cobra.Command)
| 67 | } |
| 68 | |
| 69 | func disableFlagsInUseLine(cmd *cobra.Command) { |
| 70 | visitAll(cmd, func(ccmd *cobra.Command) { |
| 71 | // do not add a `[flags]` to the end of the usage line. |
| 72 | ccmd.DisableFlagsInUseLine = true |
| 73 | }) |
| 74 | } |
| 75 | |
| 76 | // visitAll will traverse all commands from the root. |
| 77 | // This is different from the VisitAll of cobra.Command where only parents |
no test coverage detected