feat: pass ast.Call by reference

This commit is contained in:
Pete Davison
2024-01-26 14:34:18 +00:00
parent 65fdb618aa
commit 1ef5cf71d0
13 changed files with 138 additions and 137 deletions

View File

@@ -290,7 +290,7 @@ func run() error {
}
var (
calls []ast.Call
calls []*ast.Call
globals *ast.Vars
)
@@ -303,7 +303,7 @@ func run() error {
// If there are no calls, run the default task instead
if len(calls) == 0 {
calls = append(calls, ast.Call{Task: "default"})
calls = append(calls, &ast.Call{Task: "default"})
}
globals.Set("CLI_ARGS", ast.Var{Value: cliArgs})