feat: store machine id on connection entries in Uncloud config so it can be removed with machine (#182)

* fix: Store machine id on connection entries so it can be removed when machine is

* Add "GetContextOverrideOrCurrent" helper method to cli and use in `uc machine rm` to clean up connections
This commit is contained in:
Justin Bradford
2025-11-20 16:49:37 +10:00
committed by GitHub
parent 74c7738bc3
commit 76b4369aa6
4 changed files with 36 additions and 6 deletions
+1
View File
@@ -25,6 +25,7 @@ type MachineConnection struct {
TCP *netip.AddrPort `yaml:"tcp,omitempty"`
Host string `yaml:"host,omitempty"`
PublicKey secret.Secret `yaml:"public_key,omitempty"`
MachineID string `yaml:"machine_id,omitempty"`
}
func (c MachineConnection) String() string {