Skip to content

Commit b33054e

Browse files
committed
feat(cli): Ignore function deployment status
1 parent bd4c054 commit b33054e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ const push = new Command("push")
238238
command.help()
239239
}));
240240

241-
const pushFunction = async ({ functionId, all, yes } = {}) => {
241+
const pushFunction = async ({ functionId, all, yes, async } = {}) => {
242242
let response = {};
243243

244244
const functionIds = [];
@@ -454,7 +454,7 @@ const pushFunction = async ({ functionId, all, yes } = {}) => {
454454
}
455455
}
456456

457-
if (deploymentCreated) {
457+
if (deploymentCreated && !async) {
458458
try {
459459
const deploymentId = response['$id'];
460460
updaterRow.update({ status: 'Deploying', end: 'Checking deployment status...' })
@@ -1013,6 +1013,7 @@ push
10131013
.option(`--functionId <functionId>`, `Function ID`)
10141014
.option(`--all`, `Flag to push all functions`)
10151015
.option(`--yes`, `Flag to confirm all warnings`)
1016+
.option(`--async`, `Don't wait for functions deployments status`)
10161017
.action(actionRunner(pushFunction));
10171018

10181019
push

0 commit comments

Comments
 (0)