@grnsft/if
Version:
Impact Framework
22 lines (21 loc) • 765 B
TypeScript
/// <reference types="node" />
import { exec, execFile } from 'child_process';
/**
* Promise version of Node's `exec` and `execFile` from `child-process`.
*/
export declare const execPromise: typeof exec.__promisify__;
export declare const execFilePromise: typeof execFile.__promisify__;
/**
* Prepends process path to given `filePath`.
*/
export declare const prependFullFilePath: (filePath: string) => string;
/**
* Checks if there is piped data, tries to parse yaml from it.
* Returns empty string if haven't found anything.
*/
export declare const parseManifestFromStdin: () => Promise<string>;
/**
* Runs the --help command when the entered command is incorrect.
*/
export declare const runHelpCommand: (command: string) => never;