@@ -4,7 +4,7 @@ const { Command } = require("commander");
4
4
const { localConfig, globalConfig } = require("../config");
5
5
const { Spinner, SPINNER_ARC, SPINNER_DOTS } = require('../spinner');
6
6
const { paginate } = require('../paginate');
7
- const { questionsPushBuckets, questionsPushTeams, questionsPushFunctions, questionsGetEntrypoint, questionsPushCollections, questionsConfirmPushCollections, questionsPushMessagingTopics } = require("../questions");
7
+ const { questionsPushBuckets, questionsPushTeams, questionsPushFunctions, questionsGetEntrypoint, questionsPushCollections, questionsConfirmPushCollections, questionsPushMessagingTopics, questionsPushResources } = require("../questions");
8
8
const { actionRunner, success, log, error, commandDescriptions } = require("../parser");
9
9
const { functionsGet, functionsCreate, functionsUpdate, functionsCreateDeployment, functionsUpdateDeployment, functionsGetDeployment, functionsListVariables, functionsDeleteVariable, functionsCreateVariable } = require('./functions');
10
10
const {
@@ -246,6 +246,7 @@ const awaitPools = {
246
246
247
247
const pushResources = async ({ all, yes } = {}) => {
248
248
const actions = {
249
+ project: pushProject,
249
250
functions: pushFunction,
250
251
collections: pushCollection,
251
252
buckets: pushBucket,
@@ -254,7 +255,9 @@ const pushResources = async ({ all, yes } = {}) => {
254
255
}
255
256
256
257
if (all) {
257
- Object.values(actions).forEach(action => action({ all: true, yes }));
258
+ for(let action of Object.values(actions)){
259
+ await action({ all: true, yes });
260
+ }
258
261
} else {
259
262
const answers = await inquirer.prompt(questionsPushResources[0]);
260
263
answers.resources.forEach((resource) => {
@@ -1182,6 +1185,8 @@ const push = new Command("push")
1182
1185
push
1183
1186
.command("all")
1184
1187
.description("Push all resource.")
1188
+ .option(`--all`, `Flag to push all functions`)
1189
+ .option(`--yes`, `Flag to confirm all warnings`)
1185
1190
.action(actionRunner(pushResources));
1186
1191
1187
1192
push
0 commit comments