Skip to content

Commit

Permalink
fix: display experiments
Browse files Browse the repository at this point in the history
  • Loading branch information
vmaerten committed May 13, 2024
1 parent a5c3f67 commit f11fa7b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 19 deletions.
2 changes: 1 addition & 1 deletion help.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (e *Executor) ListTasks(o ListOptions) (bool, error) {

for _, d := range desc[1:] {
_, _ = fmt.Fprint(w, "\n")
//We need to keep the same color as if it was a new task to keep the output consistent
// We need to keep the same color as if it was a new task to keep the output consistent
// because tabwriter cannot handle color codes
e.Logger.FOutf(w, logger.Yellow, "")
e.Logger.FOutf(w, logger.Green, "")
Expand Down
3 changes: 2 additions & 1 deletion internal/experiments/experiments.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ func readDotEnv() {
func printExperiment(w io.Writer, l *logger.Logger, x Experiment) {
l.FOutf(w, logger.Yellow, "* ")
l.FOutf(w, logger.Green, x.Name)
l.FOutf(w, logger.Default, ": \t%s\n", x.String())
l.FOutf(w, logger.Default, ": \t%s", x.String())
fmt.Fprintf(w, "\n")
}

func List(l *logger.Logger) error {
Expand Down
17 changes: 0 additions & 17 deletions testdata/desc/Taskfile.yml

This file was deleted.

0 comments on commit f11fa7b

Please sign in to comment.