claude-code-templates 1.1.4 → 1.1.6
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 +16 -4
package/package.json
CHANGED
package/src/prompts.js
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
const chalk = require('chalk');
|
|
2
2
|
const inquirer = require('inquirer');
|
|
3
|
+
|
|
4
|
+
// Override the checkbox prompt to remove help text
|
|
5
|
+
class CustomCheckboxPrompt extends inquirer.prompt.prompts.checkbox {
|
|
6
|
+
constructor(questions, rl, answers) {
|
|
7
|
+
super(questions, rl, answers);
|
|
8
|
+
// Set dontShowHints to true to suppress the help text
|
|
9
|
+
this.dontShowHints = true;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
inquirer.registerPrompt('checkbox', CustomCheckboxPrompt);
|
|
3
14
|
const { getAvailableLanguages, getFrameworksForLanguage } = require('./templates');
|
|
4
15
|
const { getCommandsForLanguageAndFramework } = require('./command-scanner');
|
|
5
16
|
|
|
@@ -105,7 +116,7 @@ function getStepConfig(stepName, currentAnswers, projectInfo, options) {
|
|
|
105
116
|
return {
|
|
106
117
|
type: 'checkbox',
|
|
107
118
|
name: 'commands',
|
|
108
|
-
message: 'Select commands to include
|
|
119
|
+
message: 'Select commands to include:',
|
|
109
120
|
choices: [
|
|
110
121
|
{
|
|
111
122
|
value: 'basic-commands',
|
|
@@ -122,13 +133,14 @@ function getStepConfig(stepName, currentAnswers, projectInfo, options) {
|
|
|
122
133
|
return {
|
|
123
134
|
type: 'checkbox',
|
|
124
135
|
name: 'commands',
|
|
125
|
-
message: 'Select commands to include
|
|
136
|
+
message: 'Select commands to include:',
|
|
126
137
|
choices: availableCommands.map(cmd => ({
|
|
127
138
|
value: cmd.name,
|
|
128
139
|
name: `${cmd.displayName} - ${cmd.description}`,
|
|
129
140
|
checked: cmd.checked
|
|
130
141
|
})),
|
|
131
|
-
prefix: chalk.cyan('📋')
|
|
142
|
+
prefix: chalk.cyan('📋'),
|
|
143
|
+
pageSize: 10
|
|
132
144
|
};
|
|
133
145
|
|
|
134
146
|
case 'confirm':
|
|
@@ -208,7 +220,7 @@ function createPrompts(projectInfo, options = {}) {
|
|
|
208
220
|
prompts.push({
|
|
209
221
|
type: 'checkbox',
|
|
210
222
|
name: 'commands',
|
|
211
|
-
message: 'Select commands to include
|
|
223
|
+
message: 'Select commands to include:',
|
|
212
224
|
choices: (answers) => {
|
|
213
225
|
const selectedLanguage = answers.language || options.language;
|
|
214
226
|
const selectedFramework = answers.framework || options.framework;
|