MCPcopy Create free account
hub / github.com/BuddySirJava/SSH-Studio / set_option

Method set_option

src/ssh_config_parser.py:82–87  ·  view source on GitHub ↗
(self, key: str, value: str)

Source from the content-addressed store, hash-verified

80 return None
81
82 def set_option(self, key: str, value: str) -> None:
83 for opt in self.options:
84 if opt.key.lower() == key.lower():
85 opt.value = value
86 return
87 self.options.append(SSHOption(key=key, value=value))
88
89 def remove_option(self, key: str) -> bool:
90 for i, opt in enumerate(self.options):

Callers 3

update_if_touchedMethod · 0.80
_update_host_optionMethod · 0.80

Calls 1

SSHOptionClass · 0.85

Tested by

no test coverage detected