Skip to content

CLI_ASSUME_YES flag #2479

@dbeecham

Description

@dbeecham

Description

Hi. I wanted to bikeshed my Taskfile.yaml-file I used for my NixOS machines (around 8-12 of them). The UI from Taskfile can get a little messy at times, so I try to keep it clean using |Charm](https://charm.land/) or Rich.

I'd love to see either a way to run a command to query for prompt validation, or by exposing a global variable such as .CLI_ASSUME_YES we can use to kind of "side-step" the prompt when we need additional control.

For a little bit of extra context, also work a lot with Ansible. Ansible also has issues with it's prompt functionality, specifically that it doesn't scale very well. Either you could have 200k machines that need an acklowledgment, or you're running in a frontend where a TTY is not available. In these cases, it's neat to be able to hook in your own special solution to ask for confirmation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    state: needs triageWaiting to be triaged by a maintainer.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions