Skip to content

Commit 7c07523

Browse files
committed
fix(cli): Extracting migrate
1 parent 0cf5edd commit 7c07523

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/cli/index.js.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ program
2828
.version(version, "-v, --version")
2929
.option("--verbose", "Show complete error log")
3030
.option("--json", "Output in JSON format")
31-
.hook('preAction',migrate)
31+
.hook('preAction', (c, a) => migrate())
3232
.on("option:json", () => {
3333
cliConfig.json = true;
3434
})

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ const client = new Command("client")
303303
success()
304304
}));
305305

306-
async function migrate() {
306+
const migrate = async () => {
307307
if (!globalConfig.has('endpoint') || !globalConfig.has('cookie')) {
308308
return;
309309
}

0 commit comments

Comments
 (0)