feat: add doctor and status commands to CLI
- Implemented the `doctor` command to run health checks on the claude-mem installation, with an option to output results as JSON. - Implemented the `status` command to display the system status of claude-mem. - Updated the `doctor` command to use `HooksDatabase` for SQLite connectivity checks. - Removed unused session management code from the `status` command for cleaner output.
This commit is contained in:
@@ -14,6 +14,8 @@ import { trash } from '../commands/trash.js';
|
||||
import { viewTrash } from '../commands/trash-view.js';
|
||||
import { emptyTrash } from '../commands/trash-empty.js';
|
||||
import { restore } from '../commands/restore.js';
|
||||
import { doctor } from '../commands/doctor.js';
|
||||
import { status } from '../commands/status.js';
|
||||
|
||||
const program = new Command();
|
||||
// </Block> =======================================
|
||||
@@ -117,6 +119,19 @@ program
|
||||
.command('restore')
|
||||
.description('Restore files from trash interactively')
|
||||
.action(restore);
|
||||
|
||||
// Doctor command
|
||||
program
|
||||
.command('doctor')
|
||||
.description('Run health checks on claude-mem installation')
|
||||
.option('--json', 'Output results as JSON')
|
||||
.action(doctor);
|
||||
|
||||
// Status command
|
||||
program
|
||||
.command('status')
|
||||
.description('Show claude-mem system status')
|
||||
.action(status);
|
||||
// </Block> =======================================
|
||||
|
||||
// <Block> 1.9 ====================================
|
||||
|
||||
Reference in New Issue
Block a user