@jin7942/ray
Version:
Lightweight CI/CD deployment tool powered by Docker and Git
19 lines (18 loc) • 871 B
TypeScript
import { Config } from '../_types/config';
/**
* Loads the full config file and returns the project matching the given name.
*
* @param projectName - Name of the project to find.
* @param configPath - Path to the JSON config file. Default: './ray.config.json'.
* @returns A Promise resolving to the matching project's Config object.
* @throws If the file is missing, invalid, or the project is not found.
*/
export declare function loadProjectConfig(projectName: string, configPath?: string): Promise<Config>;
/**
* Loads all projects from the config file.
*
* @param configPath - Path to the JSON config file. Default: './ray.config.json'.
* @returns A Promise resolving to an array of all project configurations.
* @throws If the file is missing or contains invalid JSON.
*/
export declare function loadAllProjects(configPath?: string): Promise<Config[]>;