mirror of
https://github.com/KeygraphHQ/shannon.git
synced 2026-08-15 16:00:29 +02:00
* feat: surface report at run root and nest run internals under .shannon * feat: use plain-language wording in user-facing terminal messages * feat(cli): guide users to watch scan progress and surface report path on start * docs: sync run-folder layout and CLI wording across docs and comments * feat(cli): add version command reporting package version or git SHA * feat(cli): detect TTY for interactive prompts, color, and progress output * docs: document --yes flag, version command, and tty module * fix(cli): FORCE_COLOR precedence and plain uninstall --yes output * fix(cli): respect empty NO_COLOR * fix(cli): let NO_COLOR take precedence over FORCE_COLOR * docs: mark claude-code-router integration as removed
25 lines
610 B
TypeScript
25 lines
610 B
TypeScript
/**
|
|
* `shannon status` command — show running scans and Temporal health.
|
|
*/
|
|
|
|
import { isTemporalReady, listRunningWorkers } from '../docker.js';
|
|
|
|
export function status(): void {
|
|
// 1. Temporal health
|
|
const temporalUp = isTemporalReady();
|
|
console.log(`Temporal: ${temporalUp ? 'running' : 'not running'}`);
|
|
if (temporalUp) {
|
|
console.log(' Dashboard: http://localhost:8233');
|
|
}
|
|
console.log('');
|
|
|
|
// 2. Running scans
|
|
const workers = listRunningWorkers();
|
|
if (workers) {
|
|
console.log('Running scans:');
|
|
console.log(workers);
|
|
} else {
|
|
console.log('No scans running');
|
|
}
|
|
}
|