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); +}