-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhelp.ts
More file actions
25 lines (21 loc) · 1.11 KB
/
Copy pathhelp.ts
File metadata and controls
25 lines (21 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { theme } from "./output.js";
const commands = [
["init", "Initialize DevMap configuration"],
["analyze", "Analyze project structure"],
["ask <question>", "Ask about your codebase"],
["config model", "Set model override or automatic routing"],
["doctor", "Diagnose DevMap setup"]
] as const;
export function printHelp(): void {
console.log(`\n${theme.aqua}devmap${theme.reset} - Understand any codebase.\n`);
console.log(`${theme.aqua}USAGE${theme.reset}`);
console.log(` devmap <command> [options]\n`);
console.log(`${theme.aqua}COMMANDS${theme.reset}`);
for (const [command, description] of commands) {
console.log(` ${theme.aqua}${command.padEnd(16)}${theme.reset} ${theme.gray}${description}${theme.reset}`);
}
console.log(`\n${theme.aqua}OPTIONS${theme.reset}`);
console.log(` ${theme.aqua}-V, --version${theme.reset} ${theme.gray}Show version number${theme.reset}`);
console.log(` ${theme.aqua}-h, --help${theme.reset} ${theme.gray}Show help message${theme.reset}`);
console.log(`\n${theme.gray}More info: ${theme.aqua}https://github.com/itsflaid/devmap${theme.reset}\n`);
}