| 883 | |
| 884 | |
| 885 | class 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 | |
| 896 | class SshAgentLogCommand(Command): |