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

24 lines (23 loc) 891 B
import type { OutputFormat } from '@redocly/openapi-core'; import type { CommandArgs } from '../../wrapper'; import type { DeploymentStatusResponse, PushResponse } from '../api/types'; export type PushStatusOptions = { organization: string; project: string; pushId: string; domain?: string; config?: string; format?: Extract<OutputFormat, 'stylish'>; wait?: boolean; 'max-execution-time'?: number; 'retry-interval'?: number; 'start-time'?: number; 'continue-on-deploy-failures'?: boolean; onRetry?: (lasSummary: PushStatusSummary) => void; }; export interface PushStatusSummary { preview: DeploymentStatusResponse; production: DeploymentStatusResponse | null; commit: PushResponse['commit']; } export declare function handlePushStatus({ argv, config, version, }: CommandArgs<PushStatusOptions>): Promise<PushStatusSummary | void>;