From 2edd4614debe83c78f1145c2d2b995aae32cdbb8 Mon Sep 17 00:00:00 2001 From: Andreas Stenius Date: Mon, 1 Mar 2021 17:34:51 +0100 Subject: [PATCH] cli: add missing --format option to config:schema. Signed-off-by: Andreas Stenius --- docs/cli/commands.md | 6 +++--- packages/cli/src/commands/index.ts | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/cli/commands.md b/docs/cli/commands.md index 46cca46f78..ca89a43a6a 100644 --- a/docs/cli/commands.md +++ b/docs/cli/commands.md @@ -501,9 +501,9 @@ Usage: backstage-cli config:schema [options] Print configuration schema Options: - --package <name> Only output config schema that applies to the given package - -h, --help display help for command - + --package <name> Only output config schema that applies to the given package + --format <format> Format to print the schema in, either json or yaml [yaml] + -h, --help display help for command ``` ## versions:bump diff --git a/packages/cli/src/commands/index.ts b/packages/cli/src/commands/index.ts index 3a8ef36a97..46b6deeb21 100644 --- a/packages/cli/src/commands/index.ts +++ b/packages/cli/src/commands/index.ts @@ -176,6 +176,10 @@ export function registerCommands(program: CommanderStatic) { '--package ', 'Only output config schema that applies to the given package', ) + .option( + '--format ', + 'Format to print the schema in, either json or yaml [yaml]', + ) .description('Print configuration schema') .action(lazy(() => import('./config/schema').then(m => m.default)));