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

Method _load_custom_options

src/ui/host_editor.py:656–677  ·  view source on GitHub ↗

Loads custom SSH options into the custom options list.

(self, host: SSHHost)

Source from the content-addressed store, hash-verified

654 self.strict_host_key_row.set_selected(0)
655
656 def _load_custom_options(self, host: SSHHost):
657 """Loads custom SSH options into the custom options list."""
658 if not hasattr(self, "custom_options_list") or not self.custom_options_list:
659 return
660
661 self._clear_custom_options()
662
663 common_options = {
664 "HostName",
665 "User",
666 "Port",
667 "IdentityFile",
668 "ForwardAgent",
669 "ProxyJump",
670 "ProxyCommand",
671 "LocalForward",
672 "RemoteForward",
673 }
674
675 for option in host.options:
676 if option.key not in common_options:
677 self._add_custom_option_row(option.key, option.value)
678
679 def _clear_custom_options(self):
680 """Clears all custom option rows from the list."""

Callers 1

Calls 2

_clear_custom_optionsMethod · 0.95

Tested by

no test coverage detected