Skip to content

Commit a48c3e2

Browse files
committed
refactor(cli): Grouping init functionality
Project init will do both, create and choose an existing one.
1 parent 7015c31 commit a48c3e2

File tree

6 files changed

+251
-259
lines changed

6 files changed

+251
-259
lines changed

src/SDK/Language/CLI.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,6 @@ public function getFiles(): array
177177
'destination' => 'lib/commands/init.js',
178178
'template' => 'cli/lib/commands/init.js.twig',
179179
],
180-
[
181-
'scope' => 'default',
182-
'destination' => 'lib/commands/create.js',
183-
'template' => 'cli/lib/commands/create.js.twig',
184-
],
185180
[
186181
'scope' => 'default',
187182
'destination' => 'lib/commands/pull.js',

templates/cli/index.js.twig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const { commandDescriptions, cliConfig } = require("./lib/parser");
1212
const { client } = require("./lib/commands/generic");
1313
{% if sdk.test != "true" %}
1414
const { login, logout } = require("./lib/commands/generic");
15-
const { create } = require("./lib/commands/create");
1615
const { init } = require("./lib/commands/init");
1716
const { pull } = require("./lib/commands/pull");
1817
const { push } = require("./lib/commands/push");
@@ -39,7 +38,6 @@ program
3938
.showSuggestionAfterError()
4039
{% if sdk.test != "true" %}
4140
.addCommand(login)
42-
.addCommand(create)
4341
.addCommand(init)
4442
.addCommand(pull)
4543
.addCommand(push)

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

Lines changed: 0 additions & 224 deletions
This file was deleted.

0 commit comments

Comments
 (0)