task
task copied to clipboard
feat: add TASK_OFFLINE env and expose it as a special variable
Two things in this PR (very correlated) :
- Add a
TASK_OFFLINEenv variable to control--offlineflag. Is it useful when you want to use--offlineall the time. And also, It will be picked up by the autocomplete without modifying the autocomplete file (related to #1713) The CLI flags takes precedences over the env variable, this way we can override it as needed - Added a special variable
CLI_OFFLINEto expose this flag to the templating system (closes #1470)