mirror of
https://github.com/go-task/task.git
synced 2025-08-10 22:42:19 +02:00
rename details in Executor to summary
This commit is contained in:
@@ -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,
|
||||||
|
4
task.go
4
task.go
@@ -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
|
||||||
}
|
}
|
||||||
|
@@ -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())
|
||||||
|
Reference in New Issue
Block a user