UNPKG

@redocly/cli

Version:

[@Redocly](https://redocly.com) CLI is your all-in-one OpenAPI utility. It builds, manages, improves, and quality-checks your OpenAPI descriptions, all of which comes in handy for various phases of the API Lifecycle. Create your own rulesets to make API g

12 lines (11 loc) 523 B
import type { Arguments } from 'yargs'; import type { Config } from '@redocly/openapi-core'; import type { CollectFn } from '@redocly/openapi-core/lib/utils'; import type { CommandOptions } from './types'; export type CommandArgs<T extends CommandOptions> = { argv: T; config: Config; version: string; collectSpecData?: CollectFn; }; export declare function commandWrapper<T extends CommandOptions>(commandHandler?: (wrapperArgs: CommandArgs<T>) => Promise<unknown>): (argv: Arguments<T>) => Promise<void>;