adding stubs for command line API

This commit is contained in:
Brad Rydzewski
2014-07-16 00:34:23 -07:00
parent 25a6eb79ae
commit fe5cbb4160
9 changed files with 319 additions and 0 deletions

23
client/command/main.go Normal file
View File

@@ -0,0 +1,23 @@
package main
import (
"github.com/codegangsta/cli"
"os"
)
func main() {
app := cli.NewApp()
app.Name = "drone"
app.Version = "1.0"
app.Usage = "command line utility"
app.EnableBashCompletion = true
app.Commands = []cli.Command{
NewEnableCommand(),
NewDisableCommand(),
NewRestartCommand(),
NewWhoamiCommand(),
}
app.Run(os.Args)
}