Skip to content

Commit

Permalink
feat(blueprint-cli): allow --space to be used instead of --publisher (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
alexforsyth authored Jan 8, 2024
1 parent b8bd5c0 commit 4ac25a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions packages/utils/blueprint-cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/blueprint-cli/src/publish/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4ac25a5

Please sign in to comment.