claude-cli-advanced-starter-pack 1.0.1 → 1.0.2
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/commands/init.js +8 -2
package/package.json
CHANGED
package/src/commands/init.js
CHANGED
|
@@ -1583,8 +1583,14 @@ export async function runInit(options = {}) {
|
|
|
1583
1583
|
if (template) {
|
|
1584
1584
|
content = template();
|
|
1585
1585
|
} else {
|
|
1586
|
-
|
|
1587
|
-
|
|
1586
|
+
// Try to load from templates/commands/ folder
|
|
1587
|
+
const templatePath = join(__dirname, '..', '..', 'templates', 'commands', `${cmdName}.template.md`);
|
|
1588
|
+
if (existsSync(templatePath)) {
|
|
1589
|
+
content = readFileSync(templatePath, 'utf8');
|
|
1590
|
+
} else {
|
|
1591
|
+
failed.push({ name: cmdName, error: 'No template found' });
|
|
1592
|
+
continue;
|
|
1593
|
+
}
|
|
1588
1594
|
}
|
|
1589
1595
|
}
|
|
1590
1596
|
|