@@ -14,17 +14,13 @@ import { requireAuth } from "../../src/requireAuth";
14
14
import { deploy } from "../../src/deploy" ;
15
15
import { getDefaultHostingSite } from "../../src/getDefaultHostingSite" ;
16
16
import { 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" ;
20
17
import { Account , User } from "../../src/types/auth" ;
21
18
import { Options } from "../../src/options" ;
22
19
import { currentOptions , getCommandOptions } from "./options" ;
23
20
import { setInquirerOptions } from "./stubs/inquirer-stub" ;
24
21
import { ServiceAccount } from "../common/types" ;
25
22
import { 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" ;
28
24
import { pluginLogger } from "./logger-wrapper" ;
29
25
import { Config } from "../../src/config" ;
30
26
@@ -170,33 +166,6 @@ export async function initHosting(
170
166
setInquirerOptions ( inquirerOptions ) ;
171
167
await initAction ( "hosting" , commandOptions ) ;
172
168
}
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
-
200
169
export async function deployToHosting (
201
170
firebaseJSON : Config ,
202
171
deployTarget : string
0 commit comments