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

Function is_enterprise_command

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

Source from the content-addressed store, hash-verified

227
228
229def 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
242def command_and_args_from_cmd(command_line):

Callers 1

do_commandFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected