cli: fix yargs usage

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2025-12-02 21:00:48 +01:00
parent 419e1a06ed
commit fafd9e10e1
2 changed files with 9 additions and 4 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
Fixed internal usage of `yargs`.
+4 -4
View File
@@ -62,7 +62,7 @@ export default createCliPlugin({
path: ['config:print'],
description: 'Print the app configuration for the current package',
execute: async ({ args, info }) => {
const argv = await yargs
const argv = await yargs()
.options({
package: { type: 'string' },
lax: { type: 'boolean' },
@@ -82,7 +82,7 @@ export default createCliPlugin({
description:
'Validate that the given configuration loads and matches schema',
execute: async ({ args }) => {
const argv = await yargs
const argv = await yargs()
.options({
package: { type: 'string' },
lax: { type: 'boolean' },
@@ -105,7 +105,7 @@ export default createCliPlugin({
path: ['config:schema'],
description: 'Print the JSON schema for the given configuration',
execute: async ({ args }) => {
const argv = await yargs
const argv = await yargs()
.options({
package: { type: 'string' },
format: { type: 'string' },
@@ -122,7 +122,7 @@ export default createCliPlugin({
path: ['config', 'schema'],
description: 'Print the JSON schema for the given configuration',
execute: async ({ args }) => {
const argv = await yargs
const argv = await yargs()
.options({
package: { type: 'string' },
format: { type: 'string' },