-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.go
38 lines (31 loc) · 583 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
package main
import (
"os"
"github.com/urfave/cli"
)
// Version of this program
var Version = "HEAD"
// Commands are list of available commands
var Commands = []cli.Command{
commandList,
commandNew,
commandRemove,
commandDoctor,
commandUpdate,
commandFetch,
commandTimeline,
}
func main() {
app := cli.NewApp()
app.Name = "gst"
app.Version = Version
app.Usage = "gst"
app.Author = "Yasuaki Uechi"
app.Email = "[email protected]"
app.Commands = Commands
// Declare default action
app.HideHelp = true
app.Flags = flagsOfList
app.Action = doList
app.Run(os.Args)
}