@milkmaccya2/hostswitch
Version:
A simple CLI tool to manage and switch between multiple hosts file profiles for different development environments
21 lines • 806 B
TypeScript
import type { CreateProfileResult, HostSwitchConfig, IFileSystem, ProfileInfo } from '../interfaces';
export declare class ProfileManager {
private fileSystem;
private config;
constructor(fileSystem: IFileSystem, config: HostSwitchConfig);
getProfiles(currentProfile: string | null): ProfileInfo[];
createProfile(name: string, fromCurrent?: boolean): CreateProfileResult;
deleteProfile(name: string, currentProfile: string | null): {
success: boolean;
message: string;
};
getProfileContent(name: string): {
success: boolean;
content?: string;
message?: string;
};
profileExists(name: string): boolean;
getProfilePath(name: string): string;
private getDefaultHostsContent;
}
//# sourceMappingURL=ProfileManager.d.ts.map