Skip to content

Commit f892673

Browse files
committed
refactor(cli): Omitting the project sub-command
1 parent 2d8fe79 commit f892673

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

templates/cli/lib/commands/init.js.twig

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,6 @@ const { success, error, actionRunner, commandDescriptions } = require("../parser
88
const { accountGet } = require("./account");
99
const { loginCommand } = require("./generic");
1010

11-
const init = new Command("init")
12-
.description(commandDescriptions['init'])
13-
.configureHelp({
14-
helpWidth: process.stdout.columns || 80
15-
})
16-
.action(actionRunner(async (_options, command) => {
17-
command.help();
18-
}));
19-
2011
const initProject = async () => {
2112
let response = {};
2213

@@ -46,9 +37,11 @@ const initProject = async () => {
4637
success();
4738
}
4839

49-
init
50-
.command("project")
51-
.description("Init and create a new {{ spec.title|caseUcfirst }} project")
40+
const init = new Command("init")
41+
.description('Init and create a new {{ spec.title|caseUcfirst }} project')
42+
.configureHelp({
43+
helpWidth: process.stdout.columns || 80
44+
})
5245
.action(actionRunner(initProject));
5346

5447
module.exports = {

0 commit comments

Comments
 (0)