code: func findCommand(cmd *cobra.Command, commands []string) bool {
  	if cmd == nil {
  		return false
  	}
  	for _, c := range commands {
  		if c == cmd.Name() {
  			return true
  		}
  	}
  	return findCommand(cmd.Parent(), commands)
  }
docs: // Checks if a command or one of its ancestors is in the list