go项目脚手架
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sorbet/cmd/main.go

31 lines
459 B

1 year ago
package main
import (
"log"
"os"
"sorbet/cmd/commands"
"github.com/urfave/cli/v2"
)
var app = &cli.App{
Name: "sorbet",
Usage: "sorbet scaffold",
Commands: []*cli.Command{
{
Name: "secret",
Usage: "Builds a ticket private/public keys",
Action: func(c *cli.Context) error {
g := new(commands.TicketKeysGenerator)
return g.Generate()
},
},
},
}
func main() {
if err := app.Run(os.Args); err != nil {
log.Fatal(err)
}
}