style(ast): fix Ask field alignment in Cmd struct

This commit is contained in:
Valentin Maerten
2026-02-21 10:48:10 +01:00
parent 93cdccefce
commit 9a96a47c99

View File

@@ -20,7 +20,7 @@ type Cmd struct {
IgnoreError bool IgnoreError bool
Defer bool Defer bool
Platforms []*Platform Platforms []*Platform
Ask string Ask string
} }
func (c *Cmd) DeepCopy() *Cmd { func (c *Cmd) DeepCopy() *Cmd {
@@ -39,7 +39,7 @@ func (c *Cmd) DeepCopy() *Cmd {
IgnoreError: c.IgnoreError, IgnoreError: c.IgnoreError,
Defer: c.Defer, Defer: c.Defer,
Platforms: deepcopy.Slice(c.Platforms), Platforms: deepcopy.Slice(c.Platforms),
Ask: c.Ask, Ask: c.Ask,
} }
} }
@@ -67,7 +67,7 @@ func (c *Cmd) UnmarshalYAML(node *yaml.Node) error {
IgnoreError bool `yaml:"ignore_error"` IgnoreError bool `yaml:"ignore_error"`
Defer *Defer Defer *Defer
Platforms []*Platform Platforms []*Platform
Ask string Ask string
} }
if err := node.Decode(&cmdStruct); err != nil { if err := node.Decode(&cmdStruct); err != nil {
return errors.NewTaskfileDecodeError(err, node) return errors.NewTaskfileDecodeError(err, node)