1
0
mirror of https://github.com/go-task/task.git synced 2025-11-25 22:32:55 +02:00

feat: experiments flag (#1242)

This commit is contained in:
Pete Davison
2023-06-30 02:29:28 +01:00
committed by GitHub
parent 02f1c8482a
commit 46f7bba90d
3 changed files with 25 additions and 0 deletions

View File

@@ -5,8 +5,11 @@ import (
"fmt"
"os"
"strings"
"text/tabwriter"
"github.com/joho/godotenv"
"github.com/go-task/task/v3/internal/logger"
)
const envPrefix = "TASK_X_"
@@ -41,3 +44,11 @@ func readDotEnv() error {
}
return nil
}
func List(l *logger.Logger) error {
w := tabwriter.NewWriter(os.Stdout, 0, 8, 6, ' ', 0)
l.FOutf(w, logger.Yellow, "* ")
l.FOutf(w, logger.Green, "GENTLE_FORCE")
l.FOutf(w, logger.Default, ": \t%t\n", GentleForce)
return w.Flush()
}