-
-
Notifications
You must be signed in to change notification settings - Fork 615
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
feat: add TASK_OFFLINE env and expose it as a special variable #1716
Conversation
ee9e593
to
1868040
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me! Just one minor requested change. In the future, I think it would be good to add more overridable env vars.
Co-authored-by: Pete Davison <pd93.uk@outlook.com>
I agree. I think, I'll take some times to draft a PR to add more override like this |
1bbc4d9
to
a33f797
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one, thanks!
Two things in this PR (very correlated) :
TASK_OFFLINE
env variable to control--offline
flag. Is it useful when you want to use--offline
all the time. And also, It will be picked up by the autocomplete without modifying the autocomplete file (related to refactor: check if the remote exists just before reading it #1713)The CLI flags takes precedences over the env variable, this way we can override it as needed
CLI_OFFLINE
to expose this flag to the templating system (closes Feature Request: provide a bool variable to tasks that represents if the —offline flag is used #1470)