UNPKG

@grnsft/if

Version:

Impact Framework

21 lines (20 loc) 671 B
#!/usr/bin/env node /// <reference types="node" /> import { exec } from 'child_process'; /** * Promise version of Node's `exec` from `child-process`. */ export declare const execPromise: typeof exec.__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;