mirror of
https://github.com/toddbluhm/env-cmd.git
synced 2025-12-08 18:23:33 +00:00
- Removed all the various eslint dependencies and added ts-standard - Updated Readme file with some minor changes - Updated dist folder to have one level again
22 lines
784 B
TypeScript
22 lines
784 B
TypeScript
import { EnvCmdOptions } from './types';
|
|
/**
|
|
* Executes env - cmd using command line arguments
|
|
* @export
|
|
* @param {string[]} args Command line argument to pass in ['-f', './.env']
|
|
* @returns {Promise<{ [key: string]: any }>}
|
|
*/
|
|
export declare function CLI(args: string[]): Promise<{
|
|
[key: string]: any;
|
|
}>;
|
|
/**
|
|
* The main env-cmd program. This will spawn a new process and run the given command using
|
|
* various environment file solutions.
|
|
*
|
|
* @export
|
|
* @param {EnvCmdOptions} { command, commandArgs, envFile, rc, options }
|
|
* @returns {Promise<{ [key: string]: any }>} Returns an object containing [environment variable name]: value
|
|
*/
|
|
export declare function EnvCmd({ command, commandArgs, envFile, rc, options }: EnvCmdOptions): Promise<{
|
|
[key: string]: any;
|
|
}>;
|