Skip to content

Commit f8e2975

Browse files
authored
Add support for internal testing-only commands. (#5289)
* Add support for internal testing-only commands. * Word smith-ing.
1 parent 891c2f8 commit f8e2975

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/commands/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ export function load(client: any): any {
143143
client.hosting.sites.get = loadCommand("hosting-sites-get");
144144
client.hosting.sites.list = loadCommand("hosting-sites-list");
145145
client.init = loadCommand("init");
146+
if (experiments.isEnabled("internaltesting")) {
147+
client.internaltesting = {};
148+
}
146149
client.login = loadCommand("login");
147150
client.login.add = loadCommand("login-add");
148151
client.login.ci = loadCommand("login-ci");

src/experiments.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,17 @@ export const ALL_EXPERIMENTS = experiments({
9797
"if any service exceeds 500 tags, but it is theoretically possible that a project " +
9898
"exceeds the region-wide limit of tags and an old site version fails",
9999
},
100-
101100
// Access experiments
102101
crossservicerules: {
103102
shortDescription: "Allow Firebase Rules to reference resources in other services",
104103
},
104+
internaltesting: {
105+
shortDescription: "Exposes Firebase CLI commands intended for internal testing purposes.",
106+
fullDescription:
107+
"Exposes Firebase CLI commands intended for internal testing purposes. " +
108+
"These commands are not meant for public consumption and may break or disappear " +
109+
"without a notice.",
110+
},
105111
});
106112

107113
export type ExperimentName = keyof typeof ALL_EXPERIMENTS;

0 commit comments

Comments
 (0)