Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

add passing custom arguments - aws/gcp/az #423

Merged
merged 1 commit into from
Nov 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pkg/cmd/ssh_aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ func sshToAWSNode(nodeName, path, user, pathSSKeypair string, sshPublicKey []byt
args = append([]string{"-vvv"}, args...)
}

command := os.Args[3:]
args = append(args, command...)

cmd := exec.Command("ssh", args...)
cmd.Stdout = os.Stdout
cmd.Stdin = os.Stdin
Expand Down
3 changes: 3 additions & 0 deletions pkg/cmd/ssh_azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ func sshToAZNode(nodeName, path, user, pathSSKeypair string, sshPublicKey []byte
args = append([]string{"-vvv"}, args...)
}

command := os.Args[3:]
args = append(args, command...)

cmd := exec.Command("ssh", args...)
cmd.Stdout = os.Stdout
cmd.Stdin = os.Stdin
Expand Down
3 changes: 3 additions & 0 deletions pkg/cmd/ssh_gcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ func sshToGCPNode(nodeName, path, user, pathSSKeypair string, sshPublicKey []byt
args = append([]string{"-vvv"}, args...)
}

command := os.Args[3:]
args = append(args, command...)

cmd := exec.Command("ssh", args...)
cmd.Stdout = os.Stdout
cmd.Stdin = os.Stdin
Expand Down