diff --git a/cli/app/cmd.go b/cli/app/cmd.go index 6a15634e..a8e2e17f 100644 --- a/cli/app/cmd.go +++ b/cli/app/cmd.go @@ -183,7 +183,7 @@ does not).`, if err := internal.RunCmdRemote( cl, app, - requestTTY, + disableTTY, app.Recipe.AbraShPath, targetServiceName, cmdName, parsedCmdArgs, remoteUser); err != nil { log.Fatal(err) @@ -238,7 +238,7 @@ func parseCmdArgs(args []string, isLocal bool) (bool, string) { var ( local bool remoteUser string - requestTTY bool + disableTTY bool ) func init() { @@ -259,11 +259,11 @@ func init() { ) AppCmdCommand.Flags().BoolVarP( - &requestTTY, + &disableTTY, "tty", "T", false, - "request remote TTY", + "disable remote TTY", ) AppCmdCommand.Flags().BoolVarP( diff --git a/cli/internal/command.go b/cli/internal/command.go index 4998ab83..854d82d0 100644 --- a/cli/internal/command.go +++ b/cli/internal/command.go @@ -24,7 +24,7 @@ import ( func RunCmdRemote( cl *dockerClient.Client, app appPkg.App, - requestTTY bool, + disableTTY bool, abraSh, serviceName, cmdName, cmdArgs, remoteUser string) error { filters := filters.NewArgs() filters.Add("name", fmt.Sprintf("^%s_%s", app.StackName(), serviceName)) @@ -84,8 +84,10 @@ func RunCmdRemote( } execCreateOpts.Cmd = cmd - execCreateOpts.Tty = requestTTY - if !requestTTY { + + execCreateOpts.Tty = true + if disableTTY { + execCreateOpts.Tty = false log.Debugf("not requesting a remote TTY") }