Skip to content

Commit

Permalink
Support a default task
Browse files Browse the repository at this point in the history
  • Loading branch information
Roemer committed Aug 18, 2023
1 parent ccfba23 commit f0b2dae
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions gotaskr.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,14 @@ func Execute() int {

target, hasTarget := GetArgument("target")
if !hasTarget {
printTasks()
return 0
if taskMap["default"] != nil {
target = "default"
} else if taskMap["Default"] != nil {
target = "Default"
} else {
printTasks()
return 0
}
}

// Log start
Expand Down

0 comments on commit f0b2dae

Please sign in to comment.