fix(repo-tools): Invalid --help for backstage-repo-tools package schema openapi generate (#32305)
Signed-off-by: Gabriel Dugny <gabriel.dugny@believe.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/repo-tools': patch
|
||||
---
|
||||
|
||||
Fixed help text for `backstage-repo-tools package schema openapi generate` command.
|
||||
@@ -160,7 +160,11 @@ Options:
|
||||
Usage: backstage-repo-tools package schema openapi generate [options]
|
||||
|
||||
Options:
|
||||
--client-additional-properties [properties]
|
||||
--client-package [package]
|
||||
--server
|
||||
--server-additional-properties [properties]
|
||||
--watch
|
||||
-h, --help
|
||||
```
|
||||
|
||||
|
||||
@@ -44,24 +44,26 @@ function registerPackageCommand(program: Command) {
|
||||
|
||||
openApiCommand
|
||||
.command('generate')
|
||||
.description(
|
||||
'Command to generate a client and/or a server stub from an OpenAPI spec.',
|
||||
)
|
||||
.option(
|
||||
'--client-package [package]',
|
||||
'Top-level path to where the client should be generated, ie packages/catalog-client.',
|
||||
)
|
||||
.option('--server')
|
||||
.description(
|
||||
'Command to generate a client and/or a server stub from an OpenAPI spec.',
|
||||
)
|
||||
.option('--client-additional-properties [properties]')
|
||||
.description(
|
||||
.option('--server', 'Generate server stub')
|
||||
.option(
|
||||
'--client-additional-properties [properties]',
|
||||
'Additional properties that can be passed to @openapitools/openapi-generator-cli',
|
||||
)
|
||||
.option('--server-additional-properties [properties]')
|
||||
.description(
|
||||
.option(
|
||||
'--server-additional-properties [properties]',
|
||||
'Additional properties that can be passed to @openapitools/openapi-generator-cli',
|
||||
)
|
||||
.option('--watch')
|
||||
.description('Watch the OpenAPI spec for changes and regenerate on save.')
|
||||
.option(
|
||||
'--watch',
|
||||
'Watch the OpenAPI spec for changes and regenerate on save.',
|
||||
)
|
||||
.action(lazy(() => import('./package/schema/openapi/generate'), 'command'));
|
||||
|
||||
openApiCommand
|
||||
|
||||
Reference in New Issue
Block a user