diff --git a/README.md b/README.md index 3bd197e..8f7f9b0 100644 --- a/README.md +++ b/README.md @@ -24,19 +24,19 @@ go install github.com/golang-malawi/geneveev@latest **Generating Yup Schemas** ```sh -$ geneveev -d /path/to/package/with/validated/structs/ -output-dir ./yup-schemas +$ geneveev generate yup -d /path/to/package/with/validated/structs/ --output-dir ./yup-schemas ``` **Generating Zod Schemas** ```sh -$ geneveev -zod -d /path/to/package/with/validated/structs/ -output-dir ./zod-schemas +$ geneveev generate zod -d /path/to/package/with/validated/structs/ --output-dir ./zod-schemas ``` **Generating Dart classes** ```sh -$ geneveev -dart -d /path/to/package/with/validated/structs/ -output-dir ./dart-classes +$ geneveev generate dart -d /path/to/package/with/validated/structs/ --output-dir ./dart-classes ``` ## Example diff --git a/main.go b/main.go index 369e5a1..b735765 100644 --- a/main.go +++ b/main.go @@ -16,13 +16,9 @@ type Context struct { Debug bool } -type LsCmd struct { - Paths []string `arg:"" optional:"" name:"path" help:"Paths to list." type:"path"` -} - type GenerateCmd struct { Format string `arg:"" type:"string" help:"Which format to generate to"` - PackageDir string `name:"d" type:"path" help:"package containing structs to generate from"` + PackageDir string `name:"" short:"d" type:"path" help:"package containing structs to generate from"` OutputDir string `name:"" type:"path"` Snakecase bool `name:"" help:"whether to name files as snake_case"` }