mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-27 10:24:00 +01:00
fix(health): keep Health Stack command bytes, honor an empty section, detect from the working directory (review pass 1)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
d7e3e601d7
commit
ef52e5d690
3 files changed
+30
-7
No files matched your search
+1
-1
@@ -48,7 +48,7 @@ async function main(argv: string[]): Promise<number> {
|
||||
const mode = flag(args, '--for');
|
||||
if (args.includes('--for')) {
|
||||
if (verb !== 'detect' || mode !== 'health') { process.stderr.write(USAGE); return 64; }
|
||||
const d = healthDimensions(repoRoot() ?? process.cwd());
|
||||
const d = healthDimensions(process.cwd());
|
||||
for (const c of d.checks) process.stdout.write(`DIMENSION ${c.dimension} ${c.command} (${c.source})\n`);
|
||||
for (const m of d.missing) process.stdout.write(`DIMENSION ${m.dimension} none (${m.reason})\n`);
|
||||
return 0;
|
||||
|
||||
Reference in new issue
Block a user