UNPKG

784 BTypeScriptView Raw
1import { EnvCmdOptions } from './types';
2/**
3 * Executes env - cmd using command line arguments
4 * @export
5 * @param {string[]} args Command line argument to pass in ['-f', './.env']
6 * @returns {Promise<{ [key: string]: any }>}
7 */
8export declare function CLI(args: string[]): Promise<{
9 [key: string]: any;
10}>;
11/**
12 * The main env-cmd program. This will spawn a new process and run the given command using
13 * various environment file solutions.
14 *
15 * @export
16 * @param {EnvCmdOptions} { command, commandArgs, envFile, rc, options }
17 * @returns {Promise<{ [key: string]: any }>} Returns an object containing [environment variable name]: value
18 */
19export declare function EnvCmd({ command, commandArgs, envFile, rc, options }: EnvCmdOptions): Promise<{
20 [key: string]: any;
21}>;