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