File tree Expand file tree Collapse file tree 1 file changed +7
-14
lines changed
templates/cli/lib/commands Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Original file line number Diff line number Diff line change 1
1
const { Command } = require("commander");
2
2
const inquirer = require("inquirer");
3
3
const { projectsCreate } = require("./projects");
4
+ const { sdkForConsole } = require("../sdks");
4
5
const { localConfig, globalConfig } = require("../config");
5
- const { questionsCreateProject, } = require("../questions");
6
+ const { questionsCreateProject } = require("../questions");
6
7
const { success, error, actionRunner, commandDescriptions } = require("../parser");
7
8
const { accountGet } = require("./account");
8
9
const { loginCommand } = require("./generic");
9
10
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
-
19
11
const initProject = async () => {
20
12
let response = {};
21
13
@@ -45,10 +37,11 @@ const initProject = async () => {
45
37
success();
46
38
}
47
39
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
+ })
52
45
.action(actionRunner(initProject));
53
46
54
47
module.exports = {
You can’t perform that action at this time.
0 commit comments