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

renamed program flag to summary

This commit is contained in:
jaedle 2019-02-24 15:31:46 +01:00
parent a1837d553e
commit 2676ab9a59
2 changed files with 5 additions and 5 deletions

View File

@ -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,

View File

@ -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("")