Skip to content

Commit

Permalink
fix: misc (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
ginokent authored Apr 29, 2024
2 parents 8ac71be + 7815e8f commit c5ea977
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions pkg/ddlctl/ddlctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,23 +78,9 @@ func DDLCtl(ctx context.Context) error {
{
Name: "generate",
Short: "gen",
Usage: "ddlctl generate [options] --dialect <DDL dialect> --src <source> --dst <destination>",
Usage: "ddlctl generate [options] --dialect <DDL dialect> <source> <destination>",
Description: "generate DDL from source (file or directory) to destination (file or directory).",
Options: append(opts,
&cliz.StringOption{
Name: consts.OptionSource,
Environment: consts.EnvKeySource,
Description: "source file or directory",
Default: cliz.Default("/dev/stdin"),
},
&cliz.StringOption{
Name: consts.OptionDestination,
Environment: consts.EnvKeyDestination,
Description: "destination file or directory",
Default: cliz.Default("/dev/stdout"),
},
),
RunFunc: generate.Command,
RunFunc: generate.Command,
},
{
Name: "show",
Expand Down

0 comments on commit c5ea977

Please sign in to comment.