@sap/cli-core
Version:
Command-Line Interface (CLI) Core Module
7 lines (6 loc) • 466 B
TypeScript
import { Command } from "commander";
import { Option } from "../../../types";
export declare const checkOptions: (options: Array<Option> | Option, command: Command) => Promise<void>;
export declare const promptForValue: <ResponseType = string>(option: Option) => Promise<ResponseType>;
export declare const setOption: (option: Option, value: string) => void;
export declare const getValueFromOptionsFile: (filePath: string, { longName }: Option) => Promise<string>;