mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-27 13:34:15 -07:00
feat(cli): provide default post-submit prompt for skill command (#25327)
This commit is contained in:
@@ -88,7 +88,7 @@ describe('SkillCommandLoader', () => {
|
|||||||
type: 'tool',
|
type: 'tool',
|
||||||
toolName: ACTIVATE_SKILL_TOOL_NAME,
|
toolName: ACTIVATE_SKILL_TOOL_NAME,
|
||||||
toolArgs: { name: 'test-skill' },
|
toolArgs: { name: 'test-skill' },
|
||||||
postSubmitPrompt: undefined,
|
postSubmitPrompt: 'Use the skill test-skill',
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -46,7 +46,10 @@ export class SkillCommandLoader implements ICommandLoader {
|
|||||||
type: 'tool',
|
type: 'tool',
|
||||||
toolName: ACTIVATE_SKILL_TOOL_NAME,
|
toolName: ACTIVATE_SKILL_TOOL_NAME,
|
||||||
toolArgs: { name: skill.name },
|
toolArgs: { name: skill.name },
|
||||||
postSubmitPrompt: args.trim().length > 0 ? args.trim() : undefined,
|
postSubmitPrompt:
|
||||||
|
args.trim().length > 0
|
||||||
|
? args.trim()
|
||||||
|
: `Use the skill ${skill.name}`,
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user