MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / listStackNames

Function listStackNames

packages/cli/src/commands/lambda/state.ts:72–78  ·  view source on GitHub ↗
(cwd: string = process.cwd())

Source from the content-addressed store, hash-verified

70}
71
72export function listStackNames(cwd: string = process.cwd()): string[] {
73 const dir = join(cwd, STATE_DIR_NAME);
74 if (!existsSync(dir)) return [];
75 return readdirSync(dir)
76 .filter((f) => f.startsWith(STATE_FILE_PREFIX) && f.endsWith(".json"))
77 .map((f) => f.slice(STATE_FILE_PREFIX.length, -".json".length));
78}
79
80/**
81 * Read stack outputs or print a helpful error and exit. Shared between

Callers 2

state.test.tsFile · 0.85
requireStackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected