diff --git a/cmd/task/task.go b/cmd/task/task.go index 4140c5d7..43a35954 100644 --- a/cmd/task/task.go +++ b/cmd/task/task.go @@ -56,7 +56,7 @@ func main() { verbose bool silent bool dry bool - details bool + summary bool dir string output string ) @@ -70,7 +70,7 @@ func main() { pflag.BoolVarP(&verbose, "verbose", "v", false, "enables verbose mode") pflag.BoolVarP(&silent, "silent", "s", false, "disables echoing") pflag.BoolVar(&dry, "dry", false, "compiles and prints tasks in the order that they would be run, without executing them") - pflag.BoolVar(&details, "details", false, "show detailed description about a task if present") + pflag.BoolVar(&summary, "summary", false, "show summary about a task") pflag.StringVarP(&dir, "dir", "d", "", "sets directory of execution") pflag.StringVarP(&output, "output", "o", "", "sets output style: [interleaved|group|prefixed]") pflag.Parse() @@ -98,7 +98,7 @@ func main() { Silent: silent, Dir: dir, Dry: dry, - Details: details, + Details: summary, Stdin: os.Stdin, Stdout: os.Stdout, diff --git a/task.go b/task.go index ca343519..31c6b072 100644 --- a/task.go +++ b/task.go @@ -93,7 +93,7 @@ func (e *Executor) printTaskDetails(task string) { e.Logger.Outf("") printTaskDetailedDescription(s, e.Logger) - printDependencies(t.Deps, e.Logger) + printTaskDependencies(t.Deps, e.Logger) e.Logger.Outf("") e.Logger.Outf("commands:") @@ -103,7 +103,7 @@ func (e *Executor) printTaskDetails(task string) { } } -func printDependencies(deps []*taskfile.Dep, logger *logger.Logger) { +func printTaskDependencies(deps []*taskfile.Dep, logger *logger.Logger) { hasDependencies := len(deps) > 0 if hasDependencies { logger.Outf("")