Skip to content

Commit ee9e9d3

Browse files
authored
setup:emulators:ui (#3152)
1 parent 1884f14 commit ee9e9d3

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/commands/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ module.exports = function (client) {
120120
client.setup.emulators.database = loadCommand("setup-emulators-database");
121121
client.setup.emulators.firestore = loadCommand("setup-emulators-firestore");
122122
client.setup.emulators.pubsub = loadCommand("setup-emulators-pubsub");
123+
client.setup.emulators.ui = loadCommand("setup-emulators-ui");
123124
client.target = loadCommand("target");
124125
client.target.apply = loadCommand("target-apply");
125126
client.target.clear = loadCommand("target-clear");

src/commands/setup-emulators-ui.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"use strict";
2+
3+
const { Command } = require("../command");
4+
const { Emulators } = require("../emulator/types");
5+
const { downloadEmulator } = require("../emulator/download");
6+
7+
const NAME = Emulators.UI;
8+
9+
module.exports = new Command(`setup:emulators:${NAME}`)
10+
.description(`downloads the ${NAME} emulator`)
11+
.action((options) => {
12+
return downloadEmulator(NAME);
13+
});

0 commit comments

Comments
 (0)