mirror of
https://github.com/go-task/task.git
synced 2025-12-01 22:52:02 +02:00
Add label field to task definition
Label is an alternative name for task that replace it when printed in following context eg.: - log: when given task is up to date and is skipped from execution - log: when given task is NOT up to date (`--status` command) - in `--summary` and `--list` commands output
This commit is contained in:
@@ -56,7 +56,7 @@ func printTaskSummary(l *logger.Logger, t *taskfile.Task) {
|
||||
}
|
||||
|
||||
func printTaskName(l *logger.Logger, t *taskfile.Task) {
|
||||
l.Outf(logger.Default, "task: %s", t.Task)
|
||||
l.Outf(logger.Default, "task: %s", t.Name())
|
||||
l.Outf(logger.Default, "")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user