feat(connect): add --connect flag to connect to remote cluster machine without using config

This commit is contained in:
Pavel Sviderski
2025-03-18 14:01:38 +10:00
parent b799b7518e
commit a0a66f34c4
4 changed files with 65 additions and 14 deletions
+1 -1
View File
@@ -15,10 +15,10 @@ const (
type MachineConnection struct {
SSH SSHDestination `toml:"ssh,omitempty"`
SSHKeyFile string `toml:"ssh_key_file,omitempty"`
TCP netip.AddrPort `toml:"tcp,omitempty"`
Host string `toml:"host,omitempty"`
PublicKey secret.Secret `toml:"public_key,omitempty"`
SSHKeyFile string `toml:"ssh_key_file,omitempty"`
}
// SSHDestination represents an SSH destination string in the canonical form of "user@host:port".