Skip to content

Commit 43e8895

Browse files
committed
Merge branch 'refs/heads/feat-split-project-actions' into feat-create-resources
# Conflicts: # templates/cli/lib/commands/init.js.twig
2 parents 32ab736 + f892673 commit 43e8895

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

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

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,13 @@
11
const { Command } = require("commander");
22
const inquirer = require("inquirer");
33
const { projectsCreate } = require("./projects");
4+
const { sdkForConsole } = require("../sdks");
45
const { localConfig, globalConfig } = require("../config");
5-
const { questionsCreateProject, } = require("../questions");
6+
const { questionsCreateProject } = require("../questions");
67
const { success, error, actionRunner, commandDescriptions } = require("../parser");
78
const { accountGet } = require("./account");
89
const { loginCommand } = require("./generic");
910

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

@@ -45,10 +37,11 @@ const initProject = async () => {
4537
success();
4638
}
4739

48-
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)