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.
go-taskrem/main.go

24 lines
443 B

2 years ago
package main
import (
"flag"
"fmt"
"os"
)
2 years ago
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)
}
2 years ago
TaskRun(*config)
2 years ago
//exampleoutput := TaskCMD(*config)
//fmt.Printf("%s", exampleoutput)
2 years ago
}