@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).
17 lines (16 loc) • 1.16 kB
TypeScript
import type { RseConfig } from "@reliverse/cfg";
export declare function ensureExampleExists(projectPath: string, fallbackEnvExampleURL: string): Promise<boolean>;
export declare function ensureEnvExists(projectPath: string): Promise<boolean>;
/**
* Revised getMissingKeys:
* 1) Reads all required keys from .env.example
* 2) Parses .env to see which keys are present & non-empty
* 3) Returns only those that are truly missing or empty
*/
export declare function getMissingKeys(projectPath: string): Promise<string[]>;
export declare function copyFromExisting(projectPath: string, sourcePath: string): Promise<boolean>;
export declare function getEnvPath(projectPath: string): string;
export declare function fetchEnvExampleContent(urlResource: string): Promise<string | null>;
export declare function promptAndSetMissingValues(missingKeys: string[], envPath: string, maskInput: boolean, config: RseConfig, wasEnvCopied?: boolean, isMrse?: boolean, projectPath?: string, skipPrompts?: boolean): Promise<void>;
export declare function saveLastEnvFilePath(envPath: string): Promise<void>;
export declare function getLastEnvFilePath(): Promise<string | null>;