UNPKG

bit-bin

Version:

<a href="https://opensource.org/licenses/Apache-2.0"><img alt="apache" src="https://img.shields.io/badge/License-Apache%202.0-blue.svg"></a> <a href="https://github.com/teambit/bit/blob/master/CONTRIBUTING.md"><img alt="prs" src="https://img.shields.io/b

31 lines (30 loc) 963 B
import execa from 'execa'; export declare type InteractiveInputs = InteractiveInputDefinition[]; export declare type InteractiveInputDefinition = { triggerText: string; inputs: InteractiveInput[]; }; export declare type InteractiveInput = { value: string | InteractiveKey; waitInput?: number; }; export declare type InteractiveKey = { label: string; value: string; }; export declare type InteractiveKeyName = 'up' | 'down' | 'enter' | 'space'; declare type InteractiveKeys = { [key in InteractiveKeyName]: InteractiveKey; }; export declare const INTERACTIVE_KEYS: InteractiveKeys; declare const _default: ({ processName, args, inputs, processOpts, opts }: { processName: string; args: string[]; inputs: InteractiveInputs; processOpts: Record<string, any>; opts: { defaultIntervalBetweenInputs: number; verbose: boolean; }; }) => Promise<execa.ExecaReturnValue<string>>; export default _default;