Skip to content

Commit 0c5e1b6

Browse files
kmcnellisbkendall
andauthored
Enable hosting site management api (#3197)
Co-authored-by: Bryan Kendall <bkend@google.com>
1 parent 6c03c99 commit 0c5e1b6

3 files changed

Lines changed: 6 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
- Adds `hosting:sites:<create|get|list|delete>` commands to allow managing Hosting Sites.
12
- Fixes extra logging and race conditions when disabling emulated background functions.

src/commands/index.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,11 @@ module.exports = function (client) {
100100
client.hosting.channel.open = loadCommand("hosting-channel-open");
101101
client.hosting.clone = loadCommand("hosting-clone");
102102
client.hosting.disable = loadCommand("hosting-disable");
103-
if (previews.hostingsites) {
104-
client.hosting.sites = {};
105-
client.hosting.sites.create = loadCommand("hosting-sites-create");
106-
client.hosting.sites.delete = loadCommand("hosting-sites-delete");
107-
client.hosting.sites.get = loadCommand("hosting-sites-get");
108-
client.hosting.sites.list = loadCommand("hosting-sites-list");
109-
}
103+
client.hosting.sites = {};
104+
client.hosting.sites.create = loadCommand("hosting-sites-create");
105+
client.hosting.sites.delete = loadCommand("hosting-sites-delete");
106+
client.hosting.sites.get = loadCommand("hosting-sites-get");
107+
client.hosting.sites.list = loadCommand("hosting-sites-list");
110108
client.init = loadCommand("init");
111109
client.login = loadCommand("login");
112110
client.login.ci = loadCommand("login-ci");

src/previews.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ interface PreviewFlags {
66
ext: boolean;
77
extdev: boolean;
88
rtdbmanagement: boolean;
9-
hostingsites: boolean;
109
}
1110

1211
export const previews: PreviewFlags = Object.assign(
@@ -16,7 +15,6 @@ export const previews: PreviewFlags = Object.assign(
1615
ext: false,
1716
extdev: false,
1817
rtdbmanagement: false,
19-
hostingsites: false,
2018
},
2119
configstore.get("previews")
2220
);

0 commit comments

Comments
 (0)