mirror of
https://github.com/go-task/task.git
synced 2026-06-29 23:55:18 +00:00
rename: gitignore -> use_gitignore for clarity
Rename the Taskfile/task option from `gitignore` to `use_gitignore` to avoid ambiguity (could be read as "ignore git" vs "use .gitignore"). Consistent with Biome's `useIgnoreFile` naming convention.
This commit is contained in:
@@ -34,7 +34,7 @@ type Taskfile struct {
|
||||
Dotenv []string
|
||||
Run string
|
||||
Interval time.Duration
|
||||
Gitignore bool
|
||||
UseGitignore bool `yaml:"use_gitignore"`
|
||||
}
|
||||
|
||||
// Merge merges the second Taskfile into the first
|
||||
@@ -90,7 +90,7 @@ func (tf *Taskfile) UnmarshalYAML(node *yaml.Node) error {
|
||||
Dotenv []string
|
||||
Run string
|
||||
Interval time.Duration
|
||||
Gitignore bool
|
||||
UseGitignore bool `yaml:"use_gitignore"`
|
||||
}
|
||||
if err := node.Decode(&taskfile); err != nil {
|
||||
return errors.NewTaskfileDecodeError(err, node)
|
||||
@@ -108,7 +108,7 @@ func (tf *Taskfile) UnmarshalYAML(node *yaml.Node) error {
|
||||
tf.Dotenv = taskfile.Dotenv
|
||||
tf.Run = taskfile.Run
|
||||
tf.Interval = taskfile.Interval
|
||||
tf.Gitignore = taskfile.Gitignore
|
||||
tf.UseGitignore = taskfile.UseGitignore
|
||||
if tf.Includes == nil {
|
||||
tf.Includes = NewIncludes()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user