From 7c20dd91d93d4595869ab62e109537c6657ba080 Mon Sep 17 00:00:00 2001 From: chahinebrini Date: Wed, 24 Jun 2026 23:44:14 +0200 Subject: [PATCH] feat(cli): add status command --- src/cli/commands/status.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/cli/commands/status.ts diff --git a/src/cli/commands/status.ts b/src/cli/commands/status.ts new file mode 100644 index 0000000..8e5573c --- /dev/null +++ b/src/cli/commands/status.ts @@ -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); +}