1
0
mirror of https://github.com/go-task/task.git synced 2025-01-06 03:53:54 +02:00

rename details in Executor to summary

This commit is contained in:
jaedle 2019-02-24 15:33:09 +01:00
parent 9a3b726068
commit 06d0af7a1d
3 changed files with 4 additions and 4 deletions

View File

@ -98,7 +98,7 @@ func main() {
Silent: silent, Silent: silent,
Dir: dir, Dir: dir,
Dry: dry, Dry: dry,
Details: summary, Summary: summary,
Stdin: os.Stdin, Stdin: os.Stdin,
Stdout: os.Stdout, Stdout: os.Stdout,

View File

@ -37,7 +37,7 @@ type Executor struct {
Verbose bool Verbose bool
Silent bool Silent bool
Dry bool Dry bool
Details bool Summary bool
Stdin io.Reader Stdin io.Reader
Stdout io.Writer Stdout io.Writer
@ -64,7 +64,7 @@ func (e *Executor) Run(ctx context.Context, calls ...taskfile.Call) error {
} }
} }
if e.Details { if e.Summary {
e.printTaskDetails(calls[0].Task) e.printTaskDetails(calls[0].Task)
return nil return nil
} }

View File

@ -575,7 +575,7 @@ func TestDetails(t *testing.T) {
Dir: dir, Dir: dir,
Stdout: &buff, Stdout: &buff,
Stderr: &buff, Stderr: &buff,
Details: true, Summary: true,
Silent: true, Silent: true,
} }
assert.NoError(t, e.Setup()) assert.NoError(t, e.Setup())