UNPKG

@ably/cli

Version:

Ably CLI for Pub/Sub, Chat and Spaces

48 lines (47 loc) 1.07 kB
import { Config } from "@oclif/core"; import * as Ably from "ably"; /** * Base interface for CLI flags. */ export interface BaseFlags { "access-token"?: string; "api-key"?: string; "client-id"?: string; "control-host"?: string; env?: string; endpoint?: string; host?: string; port?: number; tls?: string; tlsPort?: number; json?: boolean; "pretty-json"?: boolean; token?: string; verbose?: boolean; "web-cli-help"?: boolean; format?: string; "token-only"?: boolean; quiet?: boolean; app?: string; [key: string]: unknown; } /** * Error details structure for formatted output * Compatible with Ably's ErrorInfo */ export type ErrorDetails = Ably.ErrorInfo | { code?: number; message?: string; statusCode?: number; [key: string]: unknown; }; /** * Command configuration type - using any for now to avoid type conflicts */ export type CommandConfig = Config; /** * Arguments type for CLI commands */ export interface CommandArgs { [key: string]: string | undefined; }