UNPKG

@ckeditor/ckeditor5-dev-utils

Version:
20 lines (19 loc) 611 B
import { type Verbosity } from "../logger/index.js"; type ShExecOptions = { /** * Level of the verbosity. If set as 'info' both outputs (stdout and stderr) will be logged. * If set as 'error', only stderr output will be logged. */ verbosity?: Verbosity; cwd?: string; /** * If set, the command execution is asynchronous. The execution is synchronous by default. */ async?: boolean; }; export default function shExec(command: string, options: { async: true; } & ShExecOptions): Promise<string>; export default function shExec(command: string, options?: ({ async?: false; } & ShExecOptions)): string;