Skip to content

feat: add custom coder bin path for ProxyCommand #8425

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jul 13, 2023

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented Jul 11, 2023

Closes #8217

@Emyrk Emyrk requested a review from mafredri July 12, 2023 12:04
Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small suggestions, but otherwise looks good.

cli/configssh.go Outdated
@@ -501,6 +508,14 @@ func (r *RootCmd) configSSH() *clibase.Cmd {
Description: "Specifies the path to an SSH config.",
Value: clibase.StringOf(&sshConfigFile),
},
{
Flag: "coder-cli-path",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about just using binary-path (without prefix)? I feel like cli terminology isn't something we expose the users to in association with the coder command, and may cause a disconnect.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thing I was trying to make clear in the flag was this was the coder binary path, not anything else like the ssh binary.

Is coder-binary-path too long?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nah, not too long IMO, your reasoning makes sense 👍🏻

@Emyrk
Copy link
Member Author

Emyrk commented Jul 13, 2023

smart to force it to be absolute 👍. As for who will use it. It is definitely an edge case that I am only adding because someone specifically requested it and it doesn't seem like too much to add.

@Emyrk Emyrk merged commit c2acc35 into main Jul 13, 2023
@Emyrk Emyrk deleted the stevenmasley/config-ssh-cli-path branch July 13, 2023 17:17
@github-actions github-actions bot locked and limited conversation to collaborators Jul 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

environment variable for coder config-ssh to specify path and binary for CLI
2 participants