UNPKG

@swell/cli

Version:

Swell's command line interface/utility

22 lines (21 loc) 622 B
import { Command, Config } from '@oclif/core'; import Api from './lib/api.js'; /** * A base class for Swell CLI commands. * * This class extends the oclif Command class and adds: * * - an Api instance * - logging methods * - a catch method to handle errors */ export declare abstract class SwellCommand extends Command { static examples: Command.Example[]; api: Api; requiresAuth: boolean; constructor(argv: string[], config: Config); debugJson(...args: any[]): void; logError(message: string): void; logSuccess(message: string): void; protected catch(error: any): Promise<void>; }