Skip to content

Add -i and -t to run and exec#9229

Merged
glours merged 1 commit intodocker:v2from
ulyssessouza:add-ti-run-exec
Mar 4, 2022
Merged

Add -i and -t to run and exec#9229
glours merged 1 commit intodocker:v2from
ulyssessouza:add-ti-run-exec

Conversation

@ulyssessouza
Copy link
Copy Markdown
Contributor

What I did
Add -i and -t to commands run and exec as hidden options, since they are not used.
This is just to avoid breakage on scripts or old usages from users.

Related issue
Resolves #9207

Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
Copy link
Copy Markdown
Contributor

@glours glours left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@glours glours merged commit c64b044 into docker:v2 Mar 4, 2022
Comment thread cmd/compose/exec.go
runCmd.Flags().BoolVarP(&opts.noTty, "no-TTY", "T", false, "Disable pseudo-TTY allocation. By default `docker compose exec` allocates a TTY.")
runCmd.Flags().StringVarP(&opts.workingDir, "workdir", "w", "", "Path to workdir directory for this command.")

runCmd.Flags().BoolP("interactive", "i", true, "Keep STDIN open even if not attached. DEPRECATED")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those are not DEPRECATED, just on by default
(also, if we want to deprecate flag, should use flags.MarkDeprecated)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Proposal: add -i and -t flags on docker compose run and exec

3 participants