mirror of
https://github.com/go-task/task.git
synced 2026-07-10 20:40:57 +02:00
feat: released not stable
This commit is contained in:
@@ -38,13 +38,13 @@ func New(xName string, config *ast.TaskRC, allowedValues ...int) Experiment {
|
||||
return x
|
||||
}
|
||||
|
||||
// NewStable creates a new experiment that is stable and no longer needs to be
|
||||
// enabled. It will always be inactive and cannot be enabled.
|
||||
func NewStable(xName string, config *ast.TaskRC) Experiment {
|
||||
// NewReleased creates a new experiment that is released and no longer needs to
|
||||
// be enabled. It will always be inactive and cannot be enabled.
|
||||
func NewReleased(xName string, config *ast.TaskRC) Experiment {
|
||||
x := Experiment{
|
||||
Name: xName,
|
||||
Value: getValue(xName, config),
|
||||
InactiveReason: "is stable and no longer needs to be enabled",
|
||||
InactiveReason: "is released and no longer needs to be enabled",
|
||||
}
|
||||
xList = append(xList, x)
|
||||
return x
|
||||
|
||||
@@ -43,9 +43,9 @@ func ParseWithConfig(dir string, config *ast.TaskRC) {
|
||||
GentleForce = New("GENTLE_FORCE", config, 1)
|
||||
EnvPrecedence = New("ENV_PRECEDENCE", config, 1)
|
||||
// Inactive experiments
|
||||
AnyVariables = NewStable("ANY_VARIABLES", config)
|
||||
MapVariables = NewStable("MAP_VARIABLES", config)
|
||||
RemoteTaskfiles = NewStable("REMOTE_TASKFILES", config)
|
||||
AnyVariables = NewReleased("ANY_VARIABLES", config)
|
||||
MapVariables = NewReleased("MAP_VARIABLES", config)
|
||||
RemoteTaskfiles = NewReleased("REMOTE_TASKFILES", config)
|
||||
}
|
||||
|
||||
// Validate checks if any experiments have been enabled while being inactive.
|
||||
|
||||
Reference in New Issue
Block a user