UNPKG

@mail-core/cli

Version:

Инструментарий для написания cli-скриптов

25 lines (24 loc) 1.24 kB
/// <reference types="inquirer" /> export * from './command/command'; export * from './command/exec'; export * from './interactive/interactive'; export * from './pkg'; export * from './console'; export type { Options as BoxenOptions, Spacing as BoxenSpacing, CustomBorderStyle as BoxenCustomBorderStyle, } from 'boxen'; import open = require('open'); import boxen = require('boxen'); import stripAnsi = require('strip-ansi'); export { PROCESS_PID, CI_JOB_ID, IS_CI_ENV, IS_SUDO, SUDO_UID, } from './process/id'; export { addProcessExitListener } from './process/exit'; export { addProcessSummary } from './process/summary'; export { open as openURL, boxen, stripAnsi, }; export declare const cliTools: { prompt: import("inquirer").PromptModule; interactive: <T extends import("./interactive/interactive").InteractiveQuestionGroup>(questions: T) => Promise<import("./interactive/interactive").InteractiveAnswers<T>>; confirm: (msg: string, value: boolean) => Promise<boolean>; input: (msg: string, value: string) => Promise<string>; select: (msg: string, value: string, choices: { name?: string | undefined; value: string; }[] | undefined, type?: "list" | "checkbox" | "radio") => Promise<string>; };