Update libs (#28)
* added prompt context library * updated libs, except chalk that should not be updated * updated libs and fixed speed
This commit is contained in:
@@ -10,12 +10,12 @@ export type Stack = {
|
||||
};
|
||||
|
||||
export const getTestStacksInfo = async (
|
||||
toolbox: GluegunMenuToolbox
|
||||
toolbox: GluegunMenuToolbox,
|
||||
): Promise<Stack[]> => {
|
||||
const { strings, system } = toolbox;
|
||||
|
||||
const stacks = JSON.parse(
|
||||
strings.trim(await system.run(`aws cloudformation list-stacks`))
|
||||
strings.trim(await system.run(`aws cloudformation list-stacks`)),
|
||||
);
|
||||
|
||||
const allStacks = (await Promise.all(
|
||||
@@ -37,9 +37,9 @@ export const getTestStacksInfo = async (
|
||||
const pipeline = JSON.parse(
|
||||
strings.trim(
|
||||
await system.run(
|
||||
`aws codepipeline get-pipeline --name ${item.StackName}Pipeline`
|
||||
)
|
||||
)
|
||||
`aws codepipeline get-pipeline --name ${item.StackName}Pipeline`,
|
||||
),
|
||||
),
|
||||
);
|
||||
const sourceStage = pipeline.pipeline.stages.filter((stage) => {
|
||||
return stage.name === 'Source';
|
||||
@@ -68,7 +68,7 @@ export const getTestStacksInfo = async (
|
||||
}
|
||||
}
|
||||
return Promise.resolve(null);
|
||||
})
|
||||
}),
|
||||
)) as Stack[] | null;
|
||||
return allStacks.filter(Boolean);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user