Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class StackAssembly extends CloudAssembly implements ICloudAssemblySource
throw new ToolkitError('This app contains no stacks');
}

const extend = convertExtend(selector.extend);
const extend = expandToExtendEnum(selector.expand);
const patterns = sanitizePatterns(selector.patterns ?? []);

switch (selector.strategy) {
Expand Down Expand Up @@ -94,7 +94,7 @@ export class StackAssembly extends CloudAssembly implements ICloudAssemblySource
}
}

function convertExtend(extend?: ExpandStackSelection): CliExtendedStackSelection | undefined {
function expandToExtendEnum(extend?: ExpandStackSelection): CliExtendedStackSelection | undefined {
switch (extend) {
case ExpandStackSelection.DOWNSTREAM:
return CliExtendedStackSelection.Downstream;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ export interface StackSelector {
patterns?: string[];

/**
* Extend the selection to upstream/downstream stacks.
* @default ExtendedStackSelection.None only select the specified/matched stacks
* Expand the selection to upstream/downstream stacks.
* @default ExpandStackSelection.None only select the specified/matched stacks
*/
extend?: ExpandStackSelection;
expand?: ExpandStackSelection;

/**
* By default, we throw an exception if the assembly contains no stacks.
Expand Down
Loading