1
0
mirror of https://github.com/go-task/task.git synced 2025-11-23 22:24:45 +02:00

Extract some functionality to its own packages

Like variable and template handling, and logging
This commit is contained in:
Andrey Nering
2018-02-17 16:12:41 -02:00
parent 152fc0ad38
commit 87a200e42c
14 changed files with 402 additions and 313 deletions

View File

@@ -12,10 +12,10 @@ import (
func (e *Executor) PrintTasksHelp() {
tasks := e.tasksWithDesc()
if len(tasks) == 0 {
e.outf("task: No tasks with description available")
e.Logger.Outf("task: No tasks with description available")
return
}
e.outf("task: Available tasks for this project:")
e.Logger.Outf("task: Available tasks for this project:")
// Format in tab-separated columns with a tab stop of 8.
w := tabwriter.NewWriter(e.Stdout, 0, 8, 0, '\t', 0)