(name, command, args)
| 241 | |
| 242 | |
| 243 | def is_enterprise_command(name, command, args): # type: (str, CliCommand, str) -> bool |
| 244 | if name in enterprise_commands: |
| 245 | return True |
| 246 | elif isinstance(command, GroupCommand): |
| 247 | args = args.split(' ') |
| 248 | verb = next(iter(args), None) |
| 249 | subcommand = command.subcommands.get(verb) |
| 250 | from .commands.enterprise_common import EnterpriseCommand |
| 251 | return isinstance(subcommand, EnterpriseCommand) |
| 252 | else: |
| 253 | return False |
| 254 | |
| 255 | |
| 256 | def command_and_args_from_cmd(command_line): |