1
0
mirror of https://github.com/go-task/task.git synced 2025-03-17 21:08:01 +02:00

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

This reverts commit e065dcb81659e5b3c38255ece1702d6c408ffebe.

Reintroducing this. Reverted unintentionally.
This commit is contained in:
Andrey Nering 2017-11-19 18:45:41 -02:00
parent 71e7cd5808
commit 7457b3668b

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)