Skip to content

Commit

Permalink
Fixed flag names
Browse files Browse the repository at this point in the history
  • Loading branch information
jamius19 committed Nov 26, 2024
1 parent cab3cc6 commit d22f3cf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions cmd/jet/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ func init() {
flag.StringVar(&ignoreEnums, "ignore-enums", "", `Comma-separated list of enums to ignore.`)

flag.StringVar(&destDir, "path", "", "Destination directory for files generated.")
flag.StringVar(&modelPkg, "model-pkg", "model", "Relative path for the Model files package from the destination directory.")
flag.StringVar(&tablePkg, "table-pkg", "table", "Relative path for the Table files package from the destination directory.")
flag.StringVar(&viewPkg, "view-pkg", "view", "Relative path for the View files package from the destination directory.")
flag.StringVar(&enumPkg, "enum-pkg", "enum", "Relative path for the Enum files package from the destination directory.")
flag.StringVar(&modelPkg, "rel-model-path", "model", "Relative path for the Model files package from the destination directory.")
flag.StringVar(&tablePkg, "rel-table-path", "table", "Relative path for the Table files package from the destination directory.")
flag.StringVar(&viewPkg, "rel-view-path", "view", "Relative path for the View files package from the destination directory.")
flag.StringVar(&enumPkg, "rel-enum-path", "enum", "Relative path for the Enum files package from the destination directory.")
}

func main() {
Expand Down
16 changes: 8 additions & 8 deletions tests/postgres/generator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ func TestCmdGeneratorWithPkgNames(t *testing.T) {
"-password=jet",
"-schema=dvds",
"-path="+genTestDir2,
"-model-pkg="+modelPath,
"-table-pkg="+tablePath,
"-view-pkg="+viewPath,
"-enum-pkg="+enumPath)
"-rel-model-path="+modelPath,
"-rel-table-path="+tablePath,
"-rel-view-path="+viewPath,
"-rel-enum-path="+enumPath)

cmd.Stderr = os.Stderr
cmd.Stdout = os.Stdout
Expand Down Expand Up @@ -159,10 +159,10 @@ func TestCmdGeneratorWithPkgNames(t *testing.T) {
"-password=jet",
"-schema=dvds",
"-path="+genTestDir2,
"-model-pkg="+modelPath,
"-table-pkg="+tablePath,
"-view-pkg="+viewPath,
"-enum-pkg="+enumPath)
"-rel-model-path="+modelPath,
"-rel-table-path="+tablePath,
"-rel-view-path="+viewPath,
"-rel-enum-path="+enumPath)

cmd.Stderr = os.Stderr
cmd.Stdout = os.Stdout
Expand Down

0 comments on commit d22f3cf

Please sign in to comment.