trimProgramName removes the program name from the command path
(commandPath string)
| 71 | |
| 72 | // trimProgramName removes the program name from the command path |
| 73 | func trimProgramName(commandPath string) string { |
| 74 | parts := strings.SplitN(commandPath, " ", 2) |
| 75 | if len(parts) > 1 { |
| 76 | return parts[1] |
| 77 | } |
| 78 | return "" |
| 79 | } |
| 80 | |
| 81 | func init() { |
| 82 | RootCmd.AddCommand(AliasesCmd) |
no outgoing calls
no test coverage detected