UNPKG

@reliverse/rse-sdk

Version:

@reliverse/rse-sdk allows you to create new plugins for @reliverse/rse CLI, interact with reliverse.org, and even extend your own CLI functionality (you may also try @reliverse/dler-sdk for this case).

20 lines (19 loc) 634 B
export declare const handleError: (error: unknown) => string; /** * Changes the current working directory to the specified path. * Logs a warning if the target directory does not exist. */ export declare function cd(dir: string): Promise<void>; /** * Returns the current working directory. */ export declare function pwd(): void; /** * Removes a file or directory (recursively, if it's a directory). * Logs an error if removal fails. */ export declare function rm(target: string): Promise<void>; /** * Returns the current working directory. */ export declare function getCurrentWorkingDirectory(useCache?: boolean): string;