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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/prompts.js +7 -13
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-templates",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "CLI tool to setup Claude Code configurations for different programming languages",
5
5
  "main": "src/index.js",
6
6
  "bin": {
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
- getHelpText() {
7
- return ''; // Return empty string instead of help text
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;