mirror of
https://github.com/go-task/task.git
synced 2025-01-04 03:48:02 +02:00
rename details in Executor to summary
This commit is contained in:
parent
9a3b726068
commit
06d0af7a1d
@ -98,7 +98,7 @@ func main() {
|
||||
Silent: silent,
|
||||
Dir: dir,
|
||||
Dry: dry,
|
||||
Details: summary,
|
||||
Summary: summary,
|
||||
|
||||
Stdin: os.Stdin,
|
||||
Stdout: os.Stdout,
|
||||
|
4
task.go
4
task.go
@ -37,7 +37,7 @@ type Executor struct {
|
||||
Verbose bool
|
||||
Silent bool
|
||||
Dry bool
|
||||
Details bool
|
||||
Summary bool
|
||||
|
||||
Stdin io.Reader
|
||||
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)
|
||||
return nil
|
||||
}
|
||||
|
@ -575,7 +575,7 @@ func TestDetails(t *testing.T) {
|
||||
Dir: dir,
|
||||
Stdout: &buff,
|
||||
Stderr: &buff,
|
||||
Details: true,
|
||||
Summary: true,
|
||||
Silent: true,
|
||||
}
|
||||
assert.NoError(t, e.Setup())
|
||||
|
Loading…
Reference in New Issue
Block a user