Skip to content

Commit c1e5c41

Browse files
committed
fix(cli): Adding migrate to tests
1 parent 8c77004 commit c1e5c41

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

templates/cli/index.js.twig

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ const { commandDescriptions, cliConfig } = require("./lib/parser");
1212
const { client } = require("./lib/commands/generic");
1313
{% if sdk.test != "true" %}
1414
const { login, logout, whoami, migrate } = require("./lib/commands/generic");
15+
{% else %}
16+
const { migrate } = require("./lib/commands/generic");
17+
{% endif %}
18+
{% if sdk.test != "true" %}
1519
const { pull } = require("./lib/commands/pull");
1620
const { push } = require("./lib/commands/push");
1721
{% endif %}
@@ -28,9 +32,7 @@ program
2832
.version(version, "-v, --version")
2933
.option("--verbose", "Show complete error log")
3034
.option("--json", "Output in JSON format")
31-
{% if sdk.test != "true" %}
3235
.hook('preAction', migrate)
33-
{% endif %}
3436
.on("option:json", () => {
3537
cliConfig.json = true;
3638
})

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ module.exports = {
331331
whoami,
332332
login,
333333
logout,
334-
migrate,
335334
{% endif %}
335+
migrate,
336336
client
337337
};

0 commit comments

Comments
 (0)