We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbfa8f2 commit 83039c2Copy full SHA for 83039c2
cli/configssh.go
@@ -65,6 +65,15 @@ func (o sshCoderConfigOptions) isZero() bool {
65
return o.sshConfigFile == sshDefaultConfigFileName && len(o.sshOptions) == 0
66
}
67
68
+func (o sshCoderConfigOptions) equal(other sshCoderConfigOptions) bool {
69
+ // Compare without side-effects or regard to order.
70
+ opt1 := slices.Clone(o.sshOptions)
71
+ sort.Strings(opt1)
72
+ opt2 := slices.Clone(other.sshOptions)
73
+ sort.Strings(opt2)
74
+ return o.sshConfigFile == other.sshConfigFile && slices.Equal(opt1, opt2)
75
+}
76
+
77
func (o sshCoderConfigOptions) asArgs() (args []string) {
78
if o.sshConfigFile != sshDefaultConfigFileName {
79
args = append(args, "--ssh-config-file", o.sshConfigFile)
0 commit comments