taskman
![Build Status](https://camo.githubusercontent.com/8fed3a1cf7474b9b1353b06857d26695b58eaa696d2f6527c7875538e82c3c26/68747470733a2f2f7472617669732d63692e6f72672f6b6f7263686173612f7461736b6d616e2e7376673f6272616e63683d6d6173746572)
Write tasks with the power of go
package main
import (
"github.com/korchasa/taskman"
"log"
"strconv"
)
// Hello says Hello
func Hello(who string, times int, show bool) {
if !show {
return
}
for times > 0 {
log.Printf("Hello, %s!\n", who)
times--
}
}
func main() {
taskman.Run(Hello)
}
List tasks
$ go build && ./taskman
Usage:
./taskman [command] [arguments]
Commands:
Hello -who=string -times=int -show=bool - says Hello
Run them
go build && ./taskman Hello -who=me -times=5 -show
Task Hello
Hello, me!
Hello, me!
Hello, me!
Hello, me!
Hello, me!