feat(cli): add status command
This commit is contained in:
parent
d728c616d1
commit
7c20dd91d9
12
src/cli/commands/status.ts
Normal file
12
src/cli/commands/status.ts
Normal 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);
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user