(name, command, args)
| 227 | |
| 228 | |
| 229 | def is_enterprise_command(name, command, args): # type: (str, CliCommand, str) -> bool |
| 230 | if name in enterprise_commands: |
| 231 | return True |
| 232 | elif isinstance(command, GroupCommand): |
| 233 | args = args.split(' ') |
| 234 | verb = next(iter(args), None) |
| 235 | subcommand = command.subcommands.get(verb) |
| 236 | from .commands.enterprise_common import EnterpriseCommand |
| 237 | return isinstance(subcommand, EnterpriseCommand) |
| 238 | else: |
| 239 | return False |
| 240 | |
| 241 | |
| 242 | def command_and_args_from_cmd(command_line): |