-
Notifications
You must be signed in to change notification settings - Fork 10
/
main.go
47 lines (40 loc) · 845 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package main
import (
"os"
"strings"
"github.com/spf13/cobra"
)
const Title = "rainbow-roads"
var Version string
var rootCmd = &cobra.Command{
Use: Title,
Version: Version,
Short: Title + ": Animate your exercise maps!",
CompletionOptions: cobra.CompletionOptions{HiddenDefaultCmd: true},
}
func main() {
rootCmd.InitDefaultHelpCmd()
if _, _, err := rootCmd.Find(os.Args[1:]); err != nil && strings.HasPrefix(err.Error(), "unknown command ") {
rootCmd.SetArgs(append([]string{wormsCmd.Name()}, os.Args[1:]...))
}
if rootCmd.Execute() != nil {
os.Exit(1)
}
}
/* TODO
- quiet mode flag
- update README
- decide progress bars
- cmd
- export
- heatmap
- blocks
- alternative region shapes
- geo
- circle
- rect
- polygon
- named
- "projects" with saved settings
- env vars?
*/