UNPKG

@cloud-copilot/cli

Version:

A standardized library for CLI building TypeScript CLI applications

18 lines 708 B
import { Argument, PerArgumentArgs } from './argument.js'; type MapResult = Record<string, string[]>; /** * Creates a map argument where the first value is the key and the rest are values. * * --arg-name key1 key1Value1 key1Value2 --arg-name key2 key2Value1 key2Value2 * * @param options the description and optional default value * @returns a map argument */ export declare function mapArgument<const O extends { defaultValue: MapResult; } & PerArgumentArgs>(options: O): Argument<MapResult>; export declare function mapArgument<const O extends { defaultValue?: undefined; } & PerArgumentArgs>(options: O): Argument<MapResult | undefined>; export {}; //# sourceMappingURL=mapArgument.d.ts.map