Example #1
0
File: app.go Project: sbinet/gotask
func runTasks(args []string) (err error) {
	sourceDir, err := os.Getwd()
	if err != nil {
		return
	}

	err = build.Run(sourceDir, args)
	return
}
Example #2
0
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
}