You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
443 B
23 lines
443 B
package main
|
|
|
|
import (
|
|
"flag"
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
var configFlag string
|
|
flag.StringVar(&configFlag, "c", "", "path to tasks.json")
|
|
flag.Parse()
|
|
|
|
fmt.Printf("Reading JSON file: %s\n", configFlag)
|
|
config, err := LoadConfig(configFlag)
|
|
if err != nil {
|
|
fmt.Fprintf(os.Stderr, "Cannot load config file: %s\n\t%s\n", configFlag, err)
|
|
}
|
|
|
|
TaskRun(*config)
|
|
//exampleoutput := TaskCMD(*config)
|
|
//fmt.Printf("%s", exampleoutput)
|
|
}
|
|
|