buildFullCommandPath constructs the full command path using the alias, excluding the program name
(cmd *cobra.Command, alias string)
| 66 | |
| 67 | // buildFullCommandPath constructs the full command path using the alias, excluding the program name |
| 68 | func buildFullCommandPath(cmd *cobra.Command, alias string) string { |
| 69 | return trimProgramName(cmd.Parent().CommandPath()) + " " + alias |
| 70 | } |
| 71 | |
| 72 | // trimProgramName removes the program name from the command path |
| 73 | func trimProgramName(commandPath string) string { |
no test coverage detected