UNPKG

@milkmaccya2/hostswitch

Version:

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

29 lines 1.1 kB
import type { CreateProfileResult, HostSwitchConfig, IFileSystem, ILogger, IPermissionChecker, ProfileInfo, SwitchResult } from '../interfaces'; export declare class HostSwitchService { private fileSystem; private logger; private config; private permissionChecker; private profileManager; private currentProfileManager; private backupManager; constructor(fileSystem: IFileSystem, logger: ILogger, config: HostSwitchConfig, permissionChecker: IPermissionChecker); private ensureDirs; getCurrentProfile(): string | null; getProfiles(): ProfileInfo[]; createProfile(name: string, fromCurrent?: boolean): CreateProfileResult; switchProfile(name: string): Promise<SwitchResult>; private doSwitchProfile; deleteProfile(name: string): { success: boolean; message: string; }; getProfileContent(name: string): { success: boolean; content?: string; message?: string; }; profileExists(name: string): boolean; getProfilePath(name: string): string; } //# sourceMappingURL=HostSwitchService.d.ts.map