Skip to content

Commit eeaf58b

Browse files
authored
chore(toolkit-lib): rename StackSelector option to expand (#109)
In #105 I renamed the interface from `Extend` to `Expand`, but forgot the options itself and some docs. This is marked as a chore so it doesn't show up in the changelog for the first release. That's what we want, because it is not relevant to users just yet. --- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license
1 parent 4bed81c commit eeaf58b

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

+2-2
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

+3-3
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)