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

Class SshAgentStopCommand

keepercommander/commands/ssh_agent.py:885–893  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

883
884
885class SshAgentStopCommand(Command):
886 def get_parser(self):
887 return ssh_agent_stop_parser
888
889 def execute(self, params, **kwargs):
890 if isinstance(params.ssh_agent, SshAgentContext):
891 params.ssh_agent.stop()
892 params.ssh_agent = None
893 print('\033[2K' + Fore.LIGHTGREEN_EX + 'SSH Agent Stopped.' + Style.RESET_ALL)
894
895
896class SshAgentLogCommand(Command):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected