feat: enable Task Disablement via Environment Variables
[feat] Enable Task Disablement via Environment Variables
What?
Implement the ability to disable individual Taskfile tasks through environment variables (e.g., COMMITLINT=false to disable the commitlint task).
Why?
Enhance system flexibility and configurability by allowing developers to easily disable specific tasks according to their requirements, without modifying configuration files.
How to reproduce?
Feature: Task Disablement via Environment Variables
As a developer
I want to disable specific tasks using environment variables
In order to have more flexibility in task execution
Scenario: Disabling a specific task
Given a project configured with all tasks enabled
When I set the environment variable "COMMITLINT=false"
Then the commitlint task should not execute
And all other tasks should continue to function normally
Scenario: Re-enabling a previously disabled task
Given a task disabled via "COMMITLINT=false"
When I remove the environment variable
Then the commitlint task should execute normally again
Definition of Done
-
Implementation of environment variable detection for each task -
Documentation updated with the list of available variables -
Tests added to verify task disablement/re-enablement -
All Taskfiles support disablement via their respective variables -
README updated with new configuration options
Breaking change?
Additional Information: List of affected tasks:
- BUN
- COMMITIZEN
- COMMITLINT
- DEV
- DOCKER
- LIZARD
- MEGALINTER
- NODEJS
- YAMLLINT