MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / handleThemeCommand

Function handleThemeCommand

apps/kimi-code/src/tui/commands/config.ts:200–214  ·  view source on GitHub ↗
(host: SlashCommandHost, args: string)

Source from the content-addressed store, hash-verified

198}
199
200export async function handleThemeCommand(host: SlashCommandHost, args: string): Promise<void> {
201 const theme = args.trim();
202 if (theme.length === 0) {
203 showThemePicker(host);
204 return;
205 }
206 if (!isBuiltInTheme(theme)) {
207 const custom = await loadCustomThemeMerged(theme);
208 if (custom === null) {
209 host.showError(`Unknown theme: ${theme}`);
210 return;
211 }
212 }
213 await applyThemeChoice(host, theme);
214}
215
216export async function handleModelCommand(host: SlashCommandHost, args: string): Promise<void> {
217 const alias = args.trim();

Callers 1

Calls 5

isBuiltInThemeFunction · 0.90
loadCustomThemeMergedFunction · 0.90
showThemePickerFunction · 0.85
applyThemeChoiceFunction · 0.85
showErrorMethod · 0.65

Tested by

no test coverage detected