diff --git a/.changeset/open-buckets-retire.md b/.changeset/open-buckets-retire.md deleted file mode 100644 index 472092d..0000000 --- a/.changeset/open-buckets-retire.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@calycode/cli": patch ---- - -chore: refactor of codegeneration command, allow variadic argument to passthrough all additional args for both orval and openapi-tools-generator diff --git a/docs/commands/generate-code.md b/docs/commands/generate-code.md index 1052995..a4a5419 100644 --- a/docs/commands/generate-code.md +++ b/docs/commands/generate-code.md @@ -21,20 +21,26 @@ $ xano generate-code [options] **Description:** Expose usable output path for further reuse. #### --generator **Description:** Generator to use, see all options at: https://openapi-generator.tech/docs/generators or the full list of orval clients. To use orval client, write the generator as this: orval-. -#### --args -**Description:** Additional arguments to pass to the generator. For options for each generator see https://openapi-generator.tech/docs/usage#generate #### --debug **Description:** Specify this flag in order to allow logging. Logs will appear in output/_logs. Default: false ### generate-code --help ```term $ xano generate-code --help -Usage: xano generate-code [options] +Usage: xano generate-code [options] [passthroughArgs...] Create a library based on the OpenAPI specification. If the openapi specification has not yet been generated, this will generate that as well as the first step. Supports **all** openapi tools generators + orval clients. +Arguments: + passthroughArgs Additional arguments to pass to the generator. For + options for each generator see + https://openapi-generator.tech/docs/usage#generate + this also accepts Orval additional arguments e.g. + --mock etc. See Orval docs as well: + https://orval.dev/reference/configuration/full-example + Options: --instance The instance name. This is used to fetch the instance configuration. The value provided at the setup @@ -51,9 +57,6 @@ Options: https://openapi-generator.tech/docs/generators or the full list of orval clients. To use orval client, write the generator as this: orval-. - --args Additional arguments to pass to the generator. For - options for each generator see - https://openapi-generator.tech/docs/usage#generate --debug Specify this flag in order to allow logging. Logs will appear in output/_logs. Default: false -h, --help display help for command diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index 643037e..7340f9e 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,11 @@ # @calycode/xano-cli +## 0.10.1 + +### Patch Changes + +- 307aafe: chore: refactor of codegeneration command, allow variadic argument to passthrough all additional args for both orval and openapi-tools-generator + ## 0.10.0 ### Minor Changes diff --git a/packages/cli/package.json b/packages/cli/package.json index fd63e9b..abd8dcb 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@calycode/cli", - "version": "0.10.0", + "version": "0.10.1", "description": "Command-line interface for Xano providing terminal access to Xano workflows", "publishConfig": { "tag": "latest",