env-cmd/dist/expand-envs.d.ts

7 lines
271 B
TypeScript

import type { Environment } from './types.ts';
/**
* expandEnvs Replaces $var in args and command with environment variables
* if the environment variable doesn't exist, it leaves it as is.
*/
export declare function expandEnvs(str: string, envs: Environment): string;