Skip to content

Commit

Permalink
Enable hosting site management api (#3197)
Browse files Browse the repository at this point in the history
Co-authored-by: Bryan Kendall <bkend@google.com>
  • Loading branch information
kmcnellis and bkendall authored Mar 11, 2021
1 parent 6c03c99 commit 0c5e1b6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
- Adds `hosting:sites:<create|get|list|delete>` commands to allow managing Hosting Sites.
- Fixes extra logging and race conditions when disabling emulated background functions.
12 changes: 5 additions & 7 deletions src/commands/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,11 @@ module.exports = function (client) {
client.hosting.channel.open = loadCommand("hosting-channel-open");
client.hosting.clone = loadCommand("hosting-clone");
client.hosting.disable = loadCommand("hosting-disable");
if (previews.hostingsites) {
client.hosting.sites = {};
client.hosting.sites.create = loadCommand("hosting-sites-create");
client.hosting.sites.delete = loadCommand("hosting-sites-delete");
client.hosting.sites.get = loadCommand("hosting-sites-get");
client.hosting.sites.list = loadCommand("hosting-sites-list");
}
client.hosting.sites = {};
client.hosting.sites.create = loadCommand("hosting-sites-create");
client.hosting.sites.delete = loadCommand("hosting-sites-delete");
client.hosting.sites.get = loadCommand("hosting-sites-get");
client.hosting.sites.list = loadCommand("hosting-sites-list");
client.init = loadCommand("init");
client.login = loadCommand("login");
client.login.ci = loadCommand("login-ci");
Expand Down
2 changes: 0 additions & 2 deletions src/previews.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ interface PreviewFlags {
ext: boolean;
extdev: boolean;
rtdbmanagement: boolean;
hostingsites: boolean;
}

export const previews: PreviewFlags = Object.assign(
Expand All @@ -16,7 +15,6 @@ export const previews: PreviewFlags = Object.assign(
ext: false,
extdev: false,
rtdbmanagement: false,
hostingsites: false,
},
configstore.get("previews")
);
Expand Down

0 comments on commit 0c5e1b6

Please sign in to comment.