Skip to content

Commit

Permalink
setup:emulators:ui (#3152)
Browse files Browse the repository at this point in the history
  • Loading branch information
mac2000 committed Feb 22, 2021
1 parent 1884f14 commit ee9e9d3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/commands/index.js
Expand Up @@ -120,6 +120,7 @@ module.exports = function (client) {
client.setup.emulators.database = loadCommand("setup-emulators-database");
client.setup.emulators.firestore = loadCommand("setup-emulators-firestore");
client.setup.emulators.pubsub = loadCommand("setup-emulators-pubsub");
client.setup.emulators.ui = loadCommand("setup-emulators-ui");
client.target = loadCommand("target");
client.target.apply = loadCommand("target-apply");
client.target.clear = loadCommand("target-clear");
Expand Down
13 changes: 13 additions & 0 deletions src/commands/setup-emulators-ui.js
@@ -0,0 +1,13 @@
"use strict";

const { Command } = require("../command");
const { Emulators } = require("../emulator/types");
const { downloadEmulator } = require("../emulator/download");

const NAME = Emulators.UI;

module.exports = new Command(`setup:emulators:${NAME}`)
.description(`downloads the ${NAME} emulator`)
.action((options) => {
return downloadEmulator(NAME);
});

0 comments on commit ee9e9d3

Please sign in to comment.