The Wayback Machine - https://web.archive.org/web/20260202205944/https://github.com/go-task/task/issues/100
Skip to content

A warning/confirm field that shows a confirm prompt before proceeding  #100

@ianwalter

Description

@ianwalter

I think it would be cool if there was a way to specify a warning before executing commands in which the user may not fully understand the consequences. It could look like:

reset:
  desc: Reset environment from scratch
  warning: This will remove all data and environment customization. Are you sure you want to do this?

And then before executing task reset it would prompt the user with a confirm prompt that looks like:

This will remove all data and environment customization. Are you sure you want to do this? [y/N]

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueIssues that are good for first-time contributors to pick up.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions