func runTasks(args []string) (err error) { sourceDir, err := os.Getwd() if err != nil { return } err = build.Run(sourceDir, args) return }
func runTasks(args []string, isDebug bool) (err error) { sourceDir, err := os.Getwd() if err != nil { return } filteredArgs := make([]string, 0) for _, arg := range args { if arg != "--debug" { filteredArgs = append(filteredArgs, arg) } } err = build.Run(sourceDir, filteredArgs, isDebug) return }