-
-
Notifications
You must be signed in to change notification settings - Fork 616
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
Feature Request: provide a bool variable to tasks that represents if the —offline flag is used #1470
Comments
What's the expected behavior for...
I think what will happen is ...
IMHO, in the presence of both My use case is to always run Thoughts? |
@mgbowman if I set a flag (or env var) that tells Task to be offline, my expectation is that it will never connect to the internet. I don't think another flag should be able to override this. Since |
Totally get where you're coming from, the two options are in-fact mutually exclusive. My previous comment was based on some CLIs I've seen that will ignore mutually exclusive options when it's trivial to interpret what the user meant to do. For example, running I guess this would work for me...
The use case being |
How about allowing |
If the cli arg overrides the env var then absolutely yes! This works with
|
I totally agree and, in my PR, it already works like that : |
My company is working on moving over to taskfiles for 200+ builds/apps/libraries. We rely on remote taskfiles to deduplicate build scripts. We’d like to execute logic based on whether or not a consumer uses the —offline flag.
Examples:
The text was updated successfully, but these errors were encountered: