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

Class SshAgentStopCommand

keepercommander/commands/ssh_agent.py:886–894  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected