UNPKG

@sap/cli-core

Version:

Command-Line Interface (CLI) Core Module

9 lines (8 loc) 520 B
import { Command } from "commander"; import { Option } from "../../../types.js"; export declare const checkOptions: (options: Array<Option> | Option, command: Command) => Promise<void>; export declare const promptForValue: <ResponseType = string>(option: Option & { prompts: NonNullable<Option["prompts"]>; }) => Promise<ResponseType>; export declare const setOption: (option: Option, value: string) => void; export declare const getValueFromOptionsFile: (filePath: string, { longName }: Option) => Promise<string>;