2013-12-03 06:50:02 +08:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2014-04-02 10:20:38 +08:00
|
|
|
"os"
|
2014-07-13 00:49:18 +08:00
|
|
|
|
|
|
|
"github.com/codegangsta/cli"
|
2016-12-08 20:24:03 +08:00
|
|
|
"gobot.io/x/gobot"
|
2013-12-03 06:50:02 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2014-06-10 10:59:59 +08:00
|
|
|
app := cli.NewApp()
|
|
|
|
app.Name = "gobot"
|
2014-12-25 01:53:48 +08:00
|
|
|
app.Author = "The Gobot team"
|
2016-12-08 20:24:03 +08:00
|
|
|
app.Email = "https://gobot.io/x/gobot"
|
2014-12-25 01:53:48 +08:00
|
|
|
app.Version = gobot.Version()
|
2016-10-08 16:33:04 +08:00
|
|
|
app.Usage = "Command Line Utility for generating new Gobot adaptors, drivers, and platforms"
|
2014-06-10 10:59:59 +08:00
|
|
|
app.Commands = []cli.Command{
|
|
|
|
Generate(),
|
2013-12-03 06:50:02 +08:00
|
|
|
}
|
2014-06-10 10:59:59 +08:00
|
|
|
app.Run(os.Args)
|
2013-12-03 06:50:02 +08:00
|
|
|
}
|