Skip to content

Conversation

@ulyssessouza
Copy link
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 <[email protected]>
Copy link
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
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
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

3 participants