mirror of
https://github.com/go-task/task.git
synced 2025-12-16 03:37:48 +01:00
feat: pass ast.Call by reference
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user