chore: unhide flag to force unix filepaths in config-ssh (#25142)

Docs now include this flag. This flag is now also viewable in linux/mac
despite it effectively being a `no-op`.

Closes https://github.com/coder/coder/issues/24205
This commit is contained in:
Steven Masley
2026-05-13 14:59:33 -05:00
committed by GitHub
parent 38f586107d
commit 0f505aa4da
5 changed files with 9 additions and 15 deletions
-5
View File
@@ -566,11 +566,6 @@ func (r *RootCmd) configSSH() *serpent.Command {
"This might be an issue in Windows machine that use a unix-like shell. " +
"This flag forces the use of unix file paths (the forward slash '/').",
Value: serpent.BoolOf(&sshConfigOpts.forceUnixSeparators),
// On non-windows showing this command is useless because it is a noop.
// Hide vs disable it though so if a command is copied from a Windows
// machine to a unix machine it will still work and not throw an
// "unknown flag" error.
Hidden: hideForceUnixSlashes,
},
cliui.SkipPromptOption(),
}
-5
View File
@@ -12,11 +12,6 @@ import (
"github.com/stretchr/testify/require"
)
func init() {
// For golden files, always show the flag.
hideForceUnixSlashes = false
}
func Test_sshConfigSplitOnCoderSection(t *testing.T) {
t.Parallel()
-2
View File
@@ -8,8 +8,6 @@ import (
"golang.org/x/xerrors"
)
var hideForceUnixSlashes = true
// sshConfigMatchExecEscape prepares the path for use in `Match exec` statement.
//
// OpenSSH parses the Match line with a very simple tokenizer that accepts "-enclosed strings for the exec command, and
-3
View File
@@ -9,9 +9,6 @@ import (
"golang.org/x/xerrors"
)
// Must be a var for unit tests to conform behavior
var hideForceUnixSlashes = false
// sshConfigMatchExecEscape prepares the path for use in `Match exec` statement.
//
// OpenSSH parses the Match line with a very simple tokenizer that accepts "-enclosed strings for the exec command, and