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

force is not very self-explaining #120

Closed
thomaseizinger opened this issue Oct 29, 2018 · 7 comments
Closed

force is not very self-explaining #120

thomaseizinger opened this issue Oct 29, 2018 · 7 comments

Comments

@thomaseizinger
Copy link

Problem Description

The force argument of a task is not very self-explaining. I had to check the documentation on what it does.

Maybe a name like allow_failure or ignore_failure could express the intent more clearly?

Code Example

[tasks.cleanup-cache]
allow_failure = true
script = ["..."]
@sagiegurari
Copy link
Owner

agree allow_failure is much better and self explanatory, I kinda reused the 'force' name from other tools I saw such as gruntjs.
unfortunately, changing this would be a real backward break and i'm not sure its important enough to justify it.

@thomaseizinger
Copy link
Author

thomaseizinger commented Oct 29, 2018 via email

@sagiegurari
Copy link
Owner

fixing takes little time, understanding why takes longer and it would increase user frustration. I'll think about it. for now I'm keeping this item open.

@thomaseizinger
Copy link
Author

That is why I added "if the error message is good"! Was thinking about something like The attribute 'force' has been replaced with 'allow_failure'. Please update your configuration.

Thanks for considering it! :)

@sagiegurari
Copy link
Owner

@thomaseizinger I decided to go for it. I renamed it to ignore_errors.
right now both attributes are supported and if force is used, it will have the error message you suggested.

@sagiegurari
Copy link
Owner

@thomaseizinger published 0.16.8 so closing this issue.
if there is anything else, please open a new issue.

@thomaseizinger
Copy link
Author

Awesome!
Thank you for making cargo-make and putting so much effort in into it!

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

No branches or pull requests

2 participants