forked from toolshed/abra
feat(cmd): add --tty flag to run commands from a script
This commit is contained in:
@ -47,6 +47,7 @@ Example:
|
||||
internal.DebugFlag,
|
||||
internal.LocalCmdFlag,
|
||||
internal.RemoteUserFlag,
|
||||
internal.TtyFlag,
|
||||
},
|
||||
BashComplete: autocomplete.AppNameComplete,
|
||||
Before: internal.SubCommandBefore,
|
||||
@ -236,6 +237,9 @@ func runCmdRemote(cl *dockerClient.Client, app config.App, abraSh, serviceName,
|
||||
|
||||
execCreateOpts.Cmd = cmd
|
||||
execCreateOpts.Tty = true
|
||||
if internal.Tty {
|
||||
execCreateOpts.Tty = false
|
||||
}
|
||||
|
||||
if err := container.RunExec(dcli, cl, targetContainer.ID, &execCreateOpts); err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user