Bug - Replace kubectl name in long description of oc commands
@@ -20,6 +20,7 @@ var commaSepVarsPattern = regexp.MustCompile(".*=.*,.*=.*")
// command name (like 'kubectl' to the appropriate target name). It returns c.
func ReplaceCommandName(from, to string, c *cobra.Command) *cobra.Command {
c.Example = strings.Replace(c.Example, from, to, -1)
+ c.Long = strings.Replace(c.Long, from, to, -1)
for _, sub := range c.Commands() {
ReplaceCommandName(from, to, sub)
}
