[Skills] UX Polishing: Transparent feedback and CLI refinements (#15954)

This commit is contained in:
N. Taylor Mullen
2026-01-07 22:30:33 -08:00
committed by GitHub
parent aca6bf6aa0
commit 3e2f4eb8ba
6 changed files with 31 additions and 18 deletions
+9 -1
View File
@@ -10,6 +10,7 @@ import { debugLogger } from '@google/gemini-cli-core';
import { exitCli } from '../utils.js';
import { enableSkill } from '../../utils/skillSettings.js';
import { renderSkillActionFeedback } from '../../utils/skillUtils.js';
import chalk from 'chalk';
interface EnableArgs {
name: string;
@@ -21,7 +22,14 @@ export async function handleEnable(args: EnableArgs) {
const settings = loadSettings(workspaceDir);
const result = enableSkill(settings, name);
debugLogger.log(renderSkillActionFeedback(result, (label, _path) => label));
let feedback = renderSkillActionFeedback(
result,
(label, path) => `${chalk.bold(label)} (${chalk.dim(path)})`,
);
if (result.status === 'success') {
feedback += ' Restart required to take effect.';
}
debugLogger.log(feedback);
}
export const enableCommand: CommandModule = {