mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-01 07:24:38 -07:00
[Skills] UX Polishing: Transparent feedback and CLI refinements (#15954)
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user