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

Avoid running prompt when status is met #1330

Closed
WnP opened this issue Sep 14, 2023 · 1 comment
Closed

Avoid running prompt when status is met #1330

WnP opened this issue Sep 14, 2023 · 1 comment
Labels
area: fingerprinting Changes related to checksums and caching.

Comments

@WnP
Copy link

WnP commented Sep 14, 2023

Giving the fact that if status returns 0 the tasks is considered up-to-date and so cmds will no be executed, then could we avoid running the associated prompt?

For example, giving the following Taskfile:

version: "3"
tasks:
  clean:
    desc: Remove application folder if exists
    prompt: There's already an application named '{{.APP_NAME}}' do you want to remove it?
    cmds:
      - rm -r {{.APP_NAME}}
    status:
      - test ! -d {{.APP_NAME}}

In the above case we don't want to be prompted if the folder doesn't exists.

@task-bot task-bot added the state: needs triage Waiting to be triaged by a maintainer. label Sep 14, 2023
@pd93 pd93 added type: enhancement area: fingerprinting Changes related to checksums and caching. and removed state: needs triage Waiting to be triaged by a maintainer. labels Sep 14, 2023
@vmaerten
Copy link
Member

This has been done on :

It'll be availabe in the next version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: fingerprinting Changes related to checksums and caching.
Projects
None yet
Development

No branches or pull requests

4 participants