UNPKG

@milkmaccya2/hostswitch

Version:

A simple CLI tool to manage and switch between multiple hosts file profiles for different development environments

19 lines 1.03 kB
import type { HostSwitchService } from '../core/HostSwitchService'; import type { ICommandResult, IPermissionChecker, IProcessManager, ProfileInfo } from '../interfaces'; export declare class HostSwitchFacade { private hostSwitchService; private processManager; private permissionChecker; constructor(hostSwitchService: HostSwitchService, processManager: IProcessManager, permissionChecker: IPermissionChecker); listProfiles(): Promise<ICommandResult>; createProfile(name: string, fromCurrent: boolean): Promise<ICommandResult>; switchProfile(name: string): Promise<ICommandResult>; switchProfileWithSudo(name: string): Promise<ICommandResult>; deleteProfile(name: string, force?: boolean): Promise<ICommandResult>; showProfile(name: string): Promise<ICommandResult>; editProfile(name: string): Promise<ICommandResult>; getCurrentProfile(): string | null; getDeletableProfiles(): ProfileInfo[]; private validateProfileName; } //# sourceMappingURL=HostSwitchFacade.d.ts.map