feat(cli): add status command

This commit is contained in:
chahinebrini 2026-06-24 23:44:14 +02:00
parent d728c616d1
commit 7c20dd91d9

View File

@ -0,0 +1,12 @@
import { generateStatus } from '../../core/status.js';
import { readEntity } from '../../core/files.js';
import { getStatusPath } from '../../core/paths.js';
export function status(cwd: string, options: { update?: boolean } = {}): void {
if (options.update) {
generateStatus(cwd);
}
const { body } = readEntity(getStatusPath(cwd));
console.log(body);
}