File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
templates/cli/lib/commands Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ const {
41
41
teamsUpdate,
42
42
teamsCreate
43
43
} = require("./teams");
44
+ const { projectsUpdate } = require("./projects");
44
45
45
46
const STEP_SIZE = 100; // Resources
46
47
const POLL_DEBOUNCE = 2000; // Milliseconds
@@ -254,6 +255,19 @@ const pushResources = async ({ all, yes } = {}) => {
254
255
}
255
256
};
256
257
258
+ const pushProject = async () => {
259
+ try {
260
+ await projectsUpdate({
261
+ projectId: localConfig.getProject().projectId,
262
+ name: localConfig.getProject().projectName,
263
+ parseOutput: false
264
+ })
265
+ success();
266
+ } catch (e) {
267
+ throw e;
268
+ }
269
+ }
270
+
257
271
const pushFunction = async ({ functionId, all, yes, async } = {}) => {
258
272
let response = {};
259
273
@@ -1106,6 +1120,11 @@ const push = new Command("push")
1106
1120
.option(`--yes`, `Flag to confirm all warnings`)
1107
1121
.action(actionRunner(pushResources));
1108
1122
1123
+ push
1124
+ .command("project")
1125
+ .description("Push project name.")
1126
+ .action(actionRunner(pushProject));
1127
+
1109
1128
push
1110
1129
.command("function")
1111
1130
.description("Push functions in the current directory.")
You can’t perform that action at this time.
0 commit comments