File tree 1 file changed +8
-2
lines changed 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -512,9 +512,15 @@ func (r *RootCmd) configSSH() *clibase.Cmd {
512
512
Flag : "coder-cli-path" ,
513
513
Env : "CODER_SSH_CONFIG_CLI_PATH" ,
514
514
Default : "" ,
515
- Description : "Optional to specify the path for the coder cli uses in ProxyCommand. " +
515
+ Description : "Optional to specify the absolute path for the coder cli uses in ProxyCommand. " +
516
516
"By default, the coder cli used is the same cli being invoked with 'config ssh'." ,
517
- Value : clibase .StringOf (& coderCliPath ),
517
+ Value : clibase .Validate (clibase .StringOf (& coderCliPath ), func (value * clibase.String ) error {
518
+ absolute := filepath .IsAbs (value .String ())
519
+ if ! absolute {
520
+ return xerrors .Errorf ("coder cli path must be an absolute path" )
521
+ }
522
+ return nil
523
+ }),
518
524
},
519
525
{
520
526
Flag : "ssh-option" ,
You can’t perform that action at this time.
0 commit comments