From 4ecf5e13017d9ad613896921f9d04883ef056ca2 Mon Sep 17 00:00:00 2001 From: Kirill Nikolaev Date: Mon, 5 Aug 2024 16:33:55 +0200 Subject: [PATCH] cmd/ssh: Rename ssh --tmp to ssh --oneshot. --- internal/cli/cmd/cluster/ssh.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/cli/cmd/cluster/ssh.go b/internal/cli/cmd/cluster/ssh.go index b2c8d3e7c..c81aceb83 100644 --- a/internal/cli/cmd/cluster/ssh.go +++ b/internal/cli/cmd/cluster/ssh.go @@ -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.") @@ -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"),