| 12 | import { parse as parseYAML } from "yaml"; |
| 13 | |
| 14 | export interface StackEntry { |
| 15 | slug: string; |
| 16 | dir: string; |
| 17 | stackFile: string; |
| 18 | composeFile: string | null; |
| 19 | envFile: string | null; |
| 20 | data: Record<string, any>; |
| 21 | raw: string; |
| 22 | } |
| 23 | |
| 24 | export function listStacks(root = "hub", only?: string[]): StackEntry[] { |
| 25 | const dirs = readdirSync(root) |
nothing calls this directly
no outgoing calls
no test coverage detected