UI for Zipcoin Blue

command.d.ts 1.1KB

12345678910111213141516171819202122232425262728
  1. import * as dargs from 'dargs';
  2. import * as minimistType from 'minimist';
  3. import { CommandData, CommandLineOptions, CommandOption } from '../../definitions';
  4. export interface MinimistOptionsToArrayOptions extends dargs.Opts {
  5. useDoubleQuotes?: boolean;
  6. }
  7. export declare function minimistOptionsToArray(options: CommandLineOptions, fnOptions?: MinimistOptionsToArrayOptions): string[];
  8. export declare function metadataToMinimistOptions(metadata: CommandData): minimistType.Opts;
  9. export interface CmdOptsSchema {
  10. envvar: string;
  11. option: CommandOption;
  12. }
  13. export declare function metadataToEnvCmdOptsSchema(metadata: CommandData): CmdOptsSchema[];
  14. /**
  15. * Filter command line options that match a given "intent", which are specified
  16. * in the command's metadata.
  17. *
  18. * To filter options that have no intent specified in the command's metadata,
  19. * exclude the intentName parameter.
  20. *
  21. * @param metadata
  22. * @param options The options to filter.
  23. * @param indentName
  24. *
  25. * @return The filtered options.
  26. */
  27. export declare function filterOptionsByIntent(metadata: CommandData, options: CommandLineOptions, intentName?: string): CommandLineOptions;