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

Function is_enterprise_command

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

Source from the content-addressed store, hash-verified

225
226
227def 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
240def command_and_args_from_cmd(command_line):

Callers 1

do_commandFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected