@stacksjs/launchpad
Version:
Like Homebrew, but faster.
27 lines • 1.04 kB
TypeScript
/**
* Helper function to get a standard PATH environment variable
*/
export declare function standardPath(): string;
/**
* Check if a path is already in the PATH environment variable
*/
export declare function isInPath(dir: string): boolean;
/**
* Check if a directory is a temporary directory that shouldn't be added to shell configuration
*/
export declare function isTemporaryDirectory(dir: string): boolean;
/**
* Add a directory to the user's PATH in their shell configuration file
* @param dir Directory to add to PATH
* @returns Whether the operation was successful
*/
export declare function addToPath(dir: string): boolean;
/**
* Get the user's current shell
*/
export declare function getUserShell(): string;
export declare function getDataDir(): string;
export declare function checkDevStatus(): Promise<boolean>;
export declare function listActiveDevEnvs(): Promise<string[]>;
export declare function deactivateDevEnv(): Promise<boolean>;
export declare function activateDevEnv(targetDir: string): Promise<boolean>;