@elinzy/e-core
Version:
e core implementation module
22 lines (19 loc) • 1.05 kB
TypeScript
import * as execa from 'execa';
import { Options, SyncOptions } from 'execa';
interface ExecOptions extends Options {
abbrev?: boolean;
logger?: boolean;
dryRun?: boolean;
throwOnError?: boolean;
}
interface ExecSyncOptions extends SyncOptions {
abbrev?: boolean;
logger?: boolean;
dryRun?: boolean;
throwOnError?: boolean;
}
declare function exec(cmd: string, args: string[], opts?: ExecOptions): Promise<any>;
declare function execSync(cmd: string, args: string[], opts?: ExecSyncOptions): string | unknown[] | Uint8Array<ArrayBufferLike> | execa.SyncResult<ExecSyncOptions> | undefined;
declare function execCommand(cmd: string, opts?: ExecOptions): Promise<string | unknown[] | execa.Result<ExecOptions> | Uint8Array<ArrayBufferLike> | undefined>;
declare function execCommandSync(cmd: string, opts?: ExecSyncOptions): string | unknown[] | Uint8Array<ArrayBufferLike> | execa.SyncResult<ExecSyncOptions> | undefined;
export { type ExecOptions, type ExecSyncOptions, exec, execCommand, execCommandSync, execSync };