Skip to content
This repository has been archived by the owner on Aug 19, 2021. It is now read-only.

Commit

Permalink
Command Usage
Browse files Browse the repository at this point in the history
  • Loading branch information
kyokomi committed Mar 21, 2015
1 parent d5a3631 commit bffa830
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gen/goma/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

func main() {
app := cli.NewApp()
app.Name = "renkin"
app.Name = "goma"
app.Version = "1.0"
app.Usage = ""
app.Author = "kyokomi"
Expand All @@ -24,13 +24,15 @@ func main() {
{
Name: "init-config",
Action: initConfigAction,
Usage: "create example config file",
Flags: []cli.Flag{
cli.StringFlag{"out", "", "output dir path", ""},
},
},
{
Name: "gen",
Action: genAction,
Usage: "generate code by params",
Flags: []cli.Flag{
cli.StringFlag{"driver", "mysql", "sql driver", ""},
cli.StringFlag{"user", "admin", "database access user's name", ""},
Expand All @@ -49,6 +51,7 @@ func main() {
{
Name: "config",
Action: configAction,
Usage: "generate code by config",
Flags: []cli.Flag{
cli.StringFlag{"path", "config.json", "config path", ""},
},
Expand Down

0 comments on commit bffa830

Please sign in to comment.