From 4ac25a5624b49551ce4f45810fadb51e46b67b2b Mon Sep 17 00:00:00 2001 From: Alexander Forsyth Date: Mon, 8 Jan 2024 14:12:43 -0500 Subject: [PATCH] feat(blueprint-cli): allow --space to be used instead of --publisher (#447) --- packages/utils/blueprint-cli/src/index.ts | 7 ++++--- packages/utils/blueprint-cli/src/publish/publish.ts | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/utils/blueprint-cli/src/index.ts b/packages/utils/blueprint-cli/src/index.ts index 12bcb4ed3..3bce2333c 100644 --- a/packages/utils/blueprint-cli/src/index.ts +++ b/packages/utils/blueprint-cli/src/index.ts @@ -300,11 +300,12 @@ yargs type: 'string', demandOption: true, }) - .option('publisher', { - description: 'the name of the publishing space', + .option('space', { + description: 'The name of the publishing space. This is the space into which the blueprint will be published.', demandOption: true, type: 'string', }) + .alias('space', ['publisher']) .option('cookie', { description: 'the code catalyst cookie to use for authorization. Get this from webauth.', demandOption: false, @@ -337,7 +338,7 @@ yargs argv = useOverrideOptionals(argv); await publish(log, argv.endpoint, { blueprintPath: argv.blueprint, - publishingSpace: argv.publisher, + publishingSpace: argv.space, cookie: argv.cookie, region: argv.region || process.env.AWS_REGION || 'us-west-2', force: ((argv.force as boolean) && argv.force == true) || false, diff --git a/packages/utils/blueprint-cli/src/publish/publish.ts b/packages/utils/blueprint-cli/src/publish/publish.ts index eee55f685..58c95ab77 100644 --- a/packages/utils/blueprint-cli/src/publish/publish.ts +++ b/packages/utils/blueprint-cli/src/publish/publish.ts @@ -8,7 +8,7 @@ import { IdentityResponse, verifyIdentity } from './verify-identity'; export interface PublishOptions extends yargs.Arguments { blueprint: string; - publisher: string; + space: string; cookie?: string; endpoint: string; region?: string;