Skip to content

Commit

Permalink
fix: allow passing multiple args to server ssh command
Browse files Browse the repository at this point in the history
Related to #711
  • Loading branch information
jooola committed Apr 11, 2024
1 parent 73579dd commit 8a601ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/cmd/server/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,17 @@ import (

"github.com/hetznercloud/cli/internal/cmd/base"
"github.com/hetznercloud/cli/internal/cmd/cmpl"
"github.com/hetznercloud/cli/internal/cmd/util"
"github.com/hetznercloud/cli/internal/hcapi2"
"github.com/hetznercloud/cli/internal/state"
)

var SSHCmd = base.Cmd{
BaseCobraCommand: func(client hcapi2.Client) *cobra.Command {
cmd := &cobra.Command{
Use: "ssh [options] <server> [command]",
Use: "ssh [options] <server> [command...]",
Short: "Spawn an SSH connection for the server",
Args: util.ValidateLenient,
ValidArgsFunction: cmpl.SuggestArgs(cmpl.SuggestCandidatesF(client.Server().Names)),
TraverseChildren: true,
DisableFlagsInUseLine: true,
Expand Down

0 comments on commit 8a601ce

Please # to comment.