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

Function get_shell_only_command_names

keepercommander/cli.py:79–86  ·  view source on GitHub ↗

Return shell/session commands and their registered aliases.

()

Source from the content-addressed store, hash-verified

77
78
79def get_shell_only_command_names():
80 """Return shell/session commands and their registered aliases."""
81 command_names = {command.lower() for command in SHELL_ONLY_COMMANDS}
82 for alias, command in aliases.items():
83 target = command[0] if isinstance(command, (tuple, list)) else command
84 if isinstance(target, str) and target.lower() in command_names:
85 command_names.add(alias.lower())
86 return command_names
87
88logging.getLogger('asyncio').setLevel(logging.WARNING)
89

Callers 1

do_commandFunction · 0.85

Calls 1

addMethod · 0.45

Tested by

no test coverage detected