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