Skip to content

Feature Request: provide a bool variable to tasks that represents if the —offline flag is used  #1470

@wburningham

Description

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:

  1. prevent a task from running if using offline mode. Certain tasks require the latest remote taskfiles
  2. If offline disable commands in tasks that would make HTTP requests (docker pull)
  3. Prompt a user for confirmation before running tasks that could benefit from pulling the latest remote taskfile

Activity

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

Metadata

Assignees

No one assigned

    Labels

    area: remoteChanges related to remote taskfiles.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions