Skip to content

Commit

Permalink
Fix a bug (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikola-wd authored Dec 10, 2023
1 parent aaab843 commit a327717
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion commands/setup_theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async function downloadFile(url, outputPath) {
});
}

export default async function setup_theme(themeName) {
async function setup_theme(themeName) {
try {
// Check if theme name is in kebab-case
if (!isKebabCase(themeName)) {
Expand Down Expand Up @@ -117,3 +117,5 @@ export default async function setup_theme(themeName) {
console.error(chalk.orange(`Error setting up theme: ${error.message}`));
}
}

export default setup_theme;
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import copy_existing_block from './commands/copy_existing_block.js';
program.command('list').description(help.list).action(list_created_blocks);

program
.command('new theme <theme-name>')
.command('theme <theme-name>')
.description(
'Download and set up a new theme from the latest theme-redone release'
)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webredone/trb-cli",
"version": "3.0.1",
"version": "3.0.2",
"description": "TRB-CLI is a handy Node.js CLI that automates the process of managing blocks in a Theme Redone WordPress theme",
"main": "index.js",
"type": "module",
Expand Down

0 comments on commit a327717

Please sign in to comment.