Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions packages/aws-cdk/lib/cli-arguments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ export interface CliArguments {
/**
* Synthesizes and prints the CloudFormation template for this stack
*
* aliases: synth
* aliases: synthesize
*/
readonly synthesize?: SynthesizeOptions;
readonly synth?: SynthOptions;

/**
* Deploys the CDK toolkit stack into an AWS environment
Expand Down Expand Up @@ -337,11 +337,11 @@ export interface ListOptions {
/**
* Synthesizes and prints the CloudFormation template for this stack
*
* aliases: synth
* aliases: synthesize
*
* @struct
*/
export interface SynthesizeOptions {
export interface SynthOptions {
/**
* Only synthesize requested stacks, don't include dependencies
*
Expand All @@ -368,7 +368,7 @@ export interface SynthesizeOptions {
readonly quiet?: boolean;

/**
* Positional argument for synthesize
* Positional argument for synth
*/
readonly STACKS?: Array<string>;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/aws-cdk/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ export async function makeConfig(): Promise<CliConfig> {
'show-dependencies': { type: 'boolean', default: false, alias: 'd', desc: 'Display stack dependency information for each stack' },
},
},
synthesize: {
synth: {
arg: {
name: 'STACKS',
variadic: true,
},
aliases: ['synth'],
aliases: ['synthesize'],
description: 'Synthesizes and prints the CloudFormation template for this stack',
options: {
exclusively: { type: 'boolean', alias: 'e', desc: 'Only synthesize requested stacks, don\'t include dependencies' },
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk/lib/convert-to-cli-args.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function convertToCliArgs(args: any): CliArguments {
};
break;

case 'synthesize':
case 'synth':
commandOptions = {
exclusively: args.exclusively,
validation: args.validation,
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk/lib/parse-command-line-arguments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export function parseCommandLineArguments(args: Array<string>): any {
desc: 'Display stack dependency information for each stack',
}),
)
.command(['synthesize [STACKS..]', 'synth [STACKS..]'], 'Synthesizes and prints the CloudFormation template for this stack', (yargs: Argv) =>
.command(['synth [STACKS..]', 'synthesize [STACKS..]'], 'Synthesizes and prints the CloudFormation template for this stack', (yargs: Argv) =>
yargs
.option('exclusively', {
default: undefined,
Expand Down
Loading