@swell/cli
Version:
Swell's command line interface/utility
38 lines (37 loc) • 1.29 kB
TypeScript
import { App } from './apps';
/**
* Checks if the swell config file exists at the given path, default to cwd.
*
* @param configFilePath - the path to the app config file
* @returns boolean
* @throws Error
*/
declare function swellConfigFileExists(configFilePath?: string): boolean;
declare function writeRcFile(path: string, data: any): Promise<void>;
declare function readRcFile(path: string): App;
/**
* Returns a new configuration instance in the current working directory or
* a parent directory.
*
* @param configDir - the path to the app config directory. If not provided,
* the config file will be searched for in the current working directory or
* a parent directory.
*
* @returns Conf
*/
declare function config(configDir?: string): LocalApp;
/**
* Returns a new configuration instance in the current working directory only.
*
* @param path Path of the current working directory
* @returns Conf
*/
declare function newConfig(path?: string): any;
/**
* Returns a new configuration instance at the specified path.
*
* @param appPath Path of the current working directory
* @returns Conf
*/
declare function newConfigAtPath(appPath?: string): any;
export { config as default, newConfig, newConfigAtPath, readRcFile, swellConfigFileExists, writeRcFile, };