Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added --yes flag to edit #3350

Closed
wants to merge 1 commit into from
Closed

added --yes flag to edit #3350

wants to merge 1 commit into from

Conversation

kairveeehh
Copy link
Contributor

fixes #3345

I have tried to fix it for edit , could you once review it so that I can proceed with the shell as well
also is there a specific reason to mention the closed issue here?

Signed-off-by: Kairvee Vaswani <[email protected]>
@AkihiroSuda
Copy link
Member

Thanks, but a duplicate of

@AkihiroSuda AkihiroSuda added the duplicate This issue or pull request already exists label Mar 14, 2025
@@ -33,11 +34,25 @@ func newEditCommand() *cobra.Command {
ValidArgsFunction: editBashComplete,
GroupID: basicCommand,
}
editCommand.PersistentFlags().BoolP("yes", "y", isatty.IsTerminal(os.Stdout.Fd()), "Alias of --tty=false")
Copy link
Member

Choose a reason for hiding this comment

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

This was expected to be added as a global flag, as in --tty

@kairveeehh kairveeehh deleted the cli branch March 18, 2025 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add --yes flag to all subcommands that have an interactive prompt
2 participants