Skip to content

Commit 5633df0

Browse files
committed
feat(cli): adding messaging to push all
1 parent 416ed81 commit 5633df0

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -230,19 +230,13 @@ const awaitPools = {
230230
},
231231
}
232232

233-
const push = new Command("push")
234-
.description(commandDescriptions['push'])
235-
.option(`--all`, `Flag to push all resources`)
236-
.option(`--yes`, `Flag to confirm all warnings`)
237-
.action(actionRunner(pushResources));
238-
239233
const pushResources = async ({ all, yes } = {}) => {
240234
const actions = {
241235
functions: pushFunction,
242236
collections: pushCollection,
243237
buckets: pushBucket,
244238
teams: pushTeam,
245-
messages: new Function()
239+
messages: pushMessagingTopic
246240
}
247241

248242
if (all) {
@@ -1006,6 +1000,11 @@ const pushMessagingTopic = async ({ all, yes } = {}) => {
10061000
}
10071001
}
10081002

1003+
const push = new Command("push")
1004+
.description(commandDescriptions['push'])
1005+
.option(`--all`, `Flag to push all resources`)
1006+
.option(`--yes`, `Flag to confirm all warnings`)
1007+
.action(actionRunner(pushResources));
10091008

10101009
push
10111010
.command("function")

0 commit comments

Comments
 (0)