Skip to content

Ability to skip confirmation via a flag #1360

Description

@AliabbasMerchant

#1330 proposes to add confirmation to risky commands. It is a nice feature to have, but in order to support proper scriptability, we should support a flag (preferably -y, like in most CLIs), to skip asking for confirmation.
So for each of the 4 commands mentioned there (and possibly even more in the future), we should add support for the -y flag

Activity

  1. ampinsk commented on Jul 14, 2020

    @ampinsk

    Thank you for bringing this up! Let's definitely make sure we ship this alongside #1330 :)

  2. ShubhankarKG commented on Jul 18, 2020

    @ShubhankarKG
    Contributor

    @ampinsk , I'd like to ask the exact implementation of the -y flag for gh pr merge, i.e the interactive merge. Do all the options get a default ? Or only the final confirmation gets an affirmative nod ?

    Thanks

  3. ampinsk commented on Jul 20, 2020

    @ampinsk

    @ShubhankarKG I'd say only the final confirmation gets an affirmative, the other pieces already have flags available

  4. ShubhankarKG commented on Jul 20, 2020

    @ShubhankarKG
    Contributor

    Okay. Thanks for the leads! I'll incorporate the necessary changes.

  5. mislav commented on Sep 4, 2020

    @mislav
    Contributor

    @AliabbasMerchant Thanks for bringing this up! I feel that all conversation about confirmation prompts, including an option to skip them, should be happening in #1330, so I'm going to close this one in favor of the original issue. 🙇

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLI

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions