@@ -14,17 +14,13 @@ import { requireAuth } from "../../src/requireAuth";
1414import { deploy } from "../../src/deploy" ;
1515import { getDefaultHostingSite } from "../../src/getDefaultHostingSite" ;
1616import { initAction } from "../../src/commands/init" ;
17- import { startAll as startAllEmulators , cleanShutdown as stopAllEmulators } from "../../src/emulator/controller" ;
18- import { EmulatorRegistry } from "../../src/emulator/registry" ;
19- import { EmulatorInfo , Emulators } from "../../src/emulator/types" ;
2017import { Account , User } from "../../src/types/auth" ;
2118import { Options } from "../../src/options" ;
2219import { currentOptions , getCommandOptions } from "./options" ;
2320import { setInquirerOptions } from "./stubs/inquirer-stub" ;
2421import { ServiceAccount } from "../common/types" ;
2522import { listChannels } from "../../src/hosting/api" ;
26- import * as commandUtils from "../../src/emulator/commandUtils" ;
27- import { EmulatorUiSelections , ChannelWithId } from "../common/messaging/types" ;
23+ import { ChannelWithId } from "../common/messaging/types" ;
2824import { pluginLogger } from "./logger-wrapper" ;
2925import { Config } from "../../src/config" ;
3026
@@ -170,33 +166,6 @@ export async function initHosting(
170166 setInquirerOptions ( inquirerOptions ) ;
171167 await initAction ( "hosting" , commandOptions ) ;
172168}
173-
174- export async function emulatorsStart ( emulatorUiSelections : EmulatorUiSelections ) {
175- const commandOptions = await getCommandOptions ( undefined , {
176- ...currentOptions ,
177- project : emulatorUiSelections . projectId ,
178- exportOnExit : emulatorUiSelections . exportStateOnExit ,
179- import : emulatorUiSelections . importStateFolderPath ,
180- only : emulatorUiSelections . mode === "hosting" ? "hosting" : ""
181- } ) ;
182- // Adjusts some options, export on exit can be a boolean or a path.
183- commandUtils . setExportOnExitOptions ( commandOptions as commandUtils . ExportOnExitOptions ) ;
184- return startAllEmulators ( commandOptions , /*showUi=*/ true ) ;
185- }
186-
187- export async function stopEmulators ( ) {
188- await stopAllEmulators ( ) ;
189- }
190-
191- export function listRunningEmulators ( ) : EmulatorInfo [ ] {
192- return EmulatorRegistry . listRunningWithInfo ( ) ;
193- }
194-
195- export function getEmulatorUiUrl ( ) : string | undefined {
196- const url : URL = EmulatorRegistry . url ( Emulators . UI ) ;
197- return url . hostname === "unknown" ? undefined : url . toString ( ) ;
198- }
199-
200169export async function deployToHosting (
201170 firebaseJSON : Config ,
202171 deployTarget : string
0 commit comments