Skip to content

Commit

Permalink
cmd/ssh: Rename ssh --tmp to ssh --oneshot.
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtverstehen committed Aug 5, 2024
1 parent e27fba0 commit 4ecf5e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/cli/cmd/cluster/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func NewSshCmd() *cobra.Command {
}

tag := cmd.Flags().String("unique_tag", "", "If specified, creates a instance with the specified unique tag.")
tmp := cmd.Flags().Bool("tmp", false, "If specified, a temporary instance will be created and destroyed upon disconnection.")
oneshot := cmd.Flags().Bool("oneshot", false, "If specified, a temporary instance will be created and destroyed upon disconnection.")
sshAgent := cmd.Flags().BoolP("ssh_agent", "A", false, "If specified, forwards the local SSH agent.")
user := cmd.Flags().String("user", "", "The user to connect as.")
forcePty := cmd.Flags().BoolP("force-pty", "t", false, "Force pseudo-terminal allocation.")
Expand Down Expand Up @@ -70,7 +70,7 @@ func NewSshCmd() *cobra.Command {

return InlineSsh(ctx, cluster.Cluster, sshOpts, args)
}
if *tmp {
if *oneshot {
opts := api.CreateClusterOpts{
KeepAtExit: false,
Purpose: fmt.Sprintf("Temporary instance for SSH"),
Expand Down

0 comments on commit 4ecf5e1

Please sign in to comment.