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