claude-code-templates 1.1.5 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/prompts.js +7 -13
package/package.json
CHANGED
package/src/prompts.js
CHANGED
|
@@ -3,16 +3,10 @@ const inquirer = require('inquirer');
|
|
|
3
3
|
|
|
4
4
|
// Override the checkbox prompt to remove help text
|
|
5
5
|
class CustomCheckboxPrompt extends inquirer.prompt.prompts.checkbox {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
// Override the render method to ensure help text is not shown
|
|
11
|
-
render() {
|
|
12
|
-
let message = super.render();
|
|
13
|
-
// Remove any help text that might still appear
|
|
14
|
-
message = message.replace(/\(Press.*?\)/g, '');
|
|
15
|
-
return message;
|
|
6
|
+
constructor(questions, rl, answers) {
|
|
7
|
+
super(questions, rl, answers);
|
|
8
|
+
// Set dontShowHints to true to suppress the help text
|
|
9
|
+
this.dontShowHints = true;
|
|
16
10
|
}
|
|
17
11
|
}
|
|
18
12
|
|
|
@@ -122,7 +116,7 @@ function getStepConfig(stepName, currentAnswers, projectInfo, options) {
|
|
|
122
116
|
return {
|
|
123
117
|
type: 'checkbox',
|
|
124
118
|
name: 'commands',
|
|
125
|
-
message: 'Select commands to include:',
|
|
119
|
+
message: 'Select commands to include (use space to select):',
|
|
126
120
|
choices: [
|
|
127
121
|
{
|
|
128
122
|
value: 'basic-commands',
|
|
@@ -139,7 +133,7 @@ function getStepConfig(stepName, currentAnswers, projectInfo, options) {
|
|
|
139
133
|
return {
|
|
140
134
|
type: 'checkbox',
|
|
141
135
|
name: 'commands',
|
|
142
|
-
message: 'Select commands to include:',
|
|
136
|
+
message: 'Select commands to include (use space to select):',
|
|
143
137
|
choices: availableCommands.map(cmd => ({
|
|
144
138
|
value: cmd.name,
|
|
145
139
|
name: `${cmd.displayName} - ${cmd.description}`,
|
|
@@ -226,7 +220,7 @@ function createPrompts(projectInfo, options = {}) {
|
|
|
226
220
|
prompts.push({
|
|
227
221
|
type: 'checkbox',
|
|
228
222
|
name: 'commands',
|
|
229
|
-
message: 'Select commands to include:',
|
|
223
|
+
message: 'Select commands to include (use space to select):',
|
|
230
224
|
choices: (answers) => {
|
|
231
225
|
const selectedLanguage = answers.language || options.language;
|
|
232
226
|
const selectedFramework = answers.framework || options.framework;
|