MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / is_enterprise_command

Function is_enterprise_command

keepercommander/cli.py:243–253  ·  view source on GitHub ↗
(name, command, args)

Source from the content-addressed store, hash-verified

241
242
243def 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
256def command_and_args_from_cmd(command_line):

Callers 1

do_commandFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected