Skip to content

Commit f83f9bf

Browse files
committed
chore(toolkit-lib): rename StackSelector option
1 parent dee84c1 commit f83f9bf

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/@aws-cdk/toolkit-lib/lib/api/cloud-assembly/private/stack-assembly.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class StackAssembly extends CloudAssembly implements ICloudAssemblySource
2727
throw new ToolkitError('This app contains no stacks');
2828
}
2929

30-
const extend = convertExtend(selector.extend);
30+
const extend = expandToExtendEnum(selector.expand);
3131
const patterns = sanitizePatterns(selector.patterns ?? []);
3232

3333
switch (selector.strategy) {
@@ -94,7 +94,7 @@ export class StackAssembly extends CloudAssembly implements ICloudAssemblySource
9494
}
9595
}
9696

97-
function convertExtend(extend?: ExpandStackSelection): CliExtendedStackSelection | undefined {
97+
function expandToExtendEnum(extend?: ExpandStackSelection): CliExtendedStackSelection | undefined {
9898
switch (extend) {
9999
case ExpandStackSelection.DOWNSTREAM:
100100
return CliExtendedStackSelection.Downstream;

packages/@aws-cdk/toolkit-lib/lib/api/cloud-assembly/stack-selector.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ export interface StackSelector {
8282
patterns?: string[];
8383

8484
/**
85-
* Extend the selection to upstream/downstream stacks.
86-
* @default ExtendedStackSelection.None only select the specified/matched stacks
85+
* Expand the selection to upstream/downstream stacks.
86+
* @default ExpandStackSelection.None only select the specified/matched stacks
8787
*/
88-
extend?: ExpandStackSelection;
88+
expand?: ExpandStackSelection;
8989

9090
/**
9191
* By default, we throw an exception if the assembly contains no stacks.

0 commit comments

Comments
 (0)