docs(help): add GitHub Copilot section to --help output

- add new major section for copilot integration

- document all copilot subcommands (auth, status, models, start, stop, enable, disable)

- show prerequisite: npm install -g copilot-api
This commit is contained in:
kaitranntt
2025-12-17 22:15:19 -05:00
parent 6b04532f41
commit 2145e62ddd
+21
View File
@@ -173,6 +173,27 @@ Claude Code Profile & Model Switcher`.trim();
]
);
// ═══════════════════════════════════════════════════════════════════════════
// MAJOR SECTION 4: GitHub Copilot Integration
// ═══════════════════════════════════════════════════════════════════════════
printMajorSection(
'GitHub Copilot Integration',
[
'Use your GitHub Copilot subscription with Claude Code',
'Requires: npm install -g copilot-api',
],
[
['ccs copilot', 'Use Copilot as API backend'],
['ccs copilot auth', 'Authenticate with GitHub'],
['ccs copilot status', 'Show integration status'],
['ccs copilot models', 'List available models'],
['ccs copilot start', 'Start copilot-api daemon'],
['ccs copilot stop', 'Stop copilot-api daemon'],
['ccs copilot enable', 'Enable integration'],
['ccs copilot disable', 'Disable integration'],
]
);
// ═══════════════════════════════════════════════════════════════════════════
// SUB-SECTIONS (simpler styling)
// ═══════════════════════════════════════════════════════════════════════════