1
0
mirror of https://github.com/go-task/task.git synced 2024-12-12 10:45:49 +02:00

list: print message with there's no task with description

This commit is contained in:
Andrey Nering 2017-11-16 23:35:53 -02:00
parent c469632ee0
commit 2508bed363

View File

@ -10,9 +10,10 @@ import (
func (e *Executor) PrintTasksHelp() {
tasks := e.tasksWithDesc()
if len(tasks) == 0 {
e.outf("task: No tasks with description available")
return
}
e.outf("Available tasks for this project:")
e.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)