(slugBinPath: string)
| 9 | |
| 10 | /** Resolve the project slug via the `gstack-slug` helper (parses `SLUG=...`). */ |
| 11 | export function resolveSlug(slugBinPath: string): string { |
| 12 | const r = spawnSync(slugBinPath, { encoding: "utf-8" }); |
| 13 | const m = (r.stdout || "").match(/^SLUG=(.+)$/m); |
| 14 | return m ? m[1].trim() : "unknown"; |
| 15 | } |
| 16 | |
| 17 | /** Current git branch, or undefined on detached HEAD / outside a repo. */ |
| 18 | export function gitBranch(): string | undefined { |
nothing calls this directly
no test coverage detected