Skip to content

Commit fa03d6e

Browse files
committed
style: fix formatting
1 parent 37d6b71 commit fa03d6e

3 files changed

Lines changed: 32 additions & 32 deletions

File tree

taskfile/ast/task.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type Task struct {
3838
Method string
3939
Prefix string `hash:"ignore"`
4040
IgnoreError bool
41-
UseGitignore *bool
41+
UseGitignore *bool
4242
Run string
4343
Platforms []*Platform
4444
If string
@@ -157,7 +157,7 @@ func (t *Task) UnmarshalYAML(node *yaml.Node) error {
157157
Method string
158158
Prefix string
159159
IgnoreError bool `yaml:"ignore_error"`
160-
UseGitignore *bool `yaml:"use_gitignore,omitempty"`
160+
UseGitignore *bool `yaml:"use_gitignore,omitempty"`
161161
Run string
162162
Platforms []*Platform
163163
If string
@@ -242,7 +242,7 @@ func (t *Task) DeepCopy() *Task {
242242
Method: t.Method,
243243
Prefix: t.Prefix,
244244
IgnoreError: t.IgnoreError,
245-
UseGitignore: deepcopy.Scalar(t.UseGitignore),
245+
UseGitignore: deepcopy.Scalar(t.UseGitignore),
246246
Run: t.Run,
247247
IncludeVars: t.IncludeVars.DeepCopy(),
248248
IncludedTaskfileVars: t.IncludedTaskfileVars.DeepCopy(),

taskfile/ast/taskfile.go

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@ var ErrIncludedTaskfilesCantHaveDotenvs = errors.New("task: Included Taskfiles c
2020

2121
// Taskfile is the abstract syntax tree for a Taskfile
2222
type Taskfile struct {
23-
Location string
24-
Version *semver.Version
25-
Output Output
26-
Method string
27-
Includes *Includes
28-
Set []string
29-
Shopt []string
30-
Vars *Vars
31-
Env *Vars
32-
Tasks *Tasks
33-
Silent bool
34-
Dotenv []string
35-
Run string
36-
Interval time.Duration
23+
Location string
24+
Version *semver.Version
25+
Output Output
26+
Method string
27+
Includes *Includes
28+
Set []string
29+
Shopt []string
30+
Vars *Vars
31+
Env *Vars
32+
Tasks *Tasks
33+
Silent bool
34+
Dotenv []string
35+
Run string
36+
Interval time.Duration
3737
UseGitignore bool `yaml:"use_gitignore"`
3838
}
3939

@@ -77,19 +77,19 @@ func (tf *Taskfile) UnmarshalYAML(node *yaml.Node) error {
7777
switch node.Kind {
7878
case yaml.MappingNode:
7979
var taskfile struct {
80-
Version *semver.Version
81-
Output Output
82-
Method string
83-
Includes *Includes
84-
Set []string
85-
Shopt []string
86-
Vars *Vars
87-
Env *Vars
88-
Tasks *Tasks
89-
Silent bool
90-
Dotenv []string
91-
Run string
92-
Interval time.Duration
80+
Version *semver.Version
81+
Output Output
82+
Method string
83+
Includes *Includes
84+
Set []string
85+
Shopt []string
86+
Vars *Vars
87+
Env *Vars
88+
Tasks *Tasks
89+
Silent bool
90+
Dotenv []string
91+
Run string
92+
Interval time.Duration
9393
UseGitignore bool `yaml:"use_gitignore"`
9494
}
9595
if err := node.Decode(&taskfile); err != nil {

variables.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func (e *Executor) CompiledTaskForTaskList(call *Call) (*ast.Task, error) {
5959
Env: nil,
6060
Dotenv: origTask.Dotenv,
6161
Silent: deepcopy.Scalar(origTask.Silent),
62-
UseGitignore: deepcopy.Scalar(origTask.UseGitignore),
62+
UseGitignore: deepcopy.Scalar(origTask.UseGitignore),
6363
Interactive: origTask.Interactive,
6464
Internal: origTask.Internal,
6565
Method: origTask.Method,
@@ -132,7 +132,7 @@ func (e *Executor) compiledTask(call *Call, evaluateShVars bool) (*ast.Task, err
132132
Env: nil,
133133
Dotenv: templater.Replace(origTask.Dotenv, cache),
134134
Silent: deepcopy.Scalar(origTask.Silent),
135-
UseGitignore: &gitignore,
135+
UseGitignore: &gitignore,
136136
Interactive: origTask.Interactive,
137137
Internal: origTask.Internal,
138138
Method: templater.Replace(origTask.Method, cache),

0 commit comments

Comments
 (0)