feat(cli): add CLI entry point with commander and start command
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { createProgram } from './index.js';
|
||||
|
||||
describe('CLI program', () => {
|
||||
it('creates a commander program with expected commands', () => {
|
||||
const program = createProgram();
|
||||
const commandNames = program.commands.map((c) => c.name());
|
||||
|
||||
expect(commandNames).toContain('start');
|
||||
expect(commandNames).toContain('tui');
|
||||
expect(commandNames).toContain('send');
|
||||
expect(commandNames).toContain('sessions');
|
||||
expect(commandNames).toContain('doctor');
|
||||
expect(commandNames).toContain('config');
|
||||
});
|
||||
|
||||
it('has version info', () => {
|
||||
const program = createProgram();
|
||||
expect(program.version()).toBeDefined();
|
||||
});
|
||||
|
||||
it('has description', () => {
|
||||
const program = createProgram();
|
||||
expect(program.description()).toContain('AI');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user