UNPKG

gcal-commander

Version:

A command-line interface for Google Calendar operations

35 lines (34 loc) 1.6 kB
import { Command } from '@oclif/core'; import { IAuthService, ICalendarService, IConfigService, II18nService } from './interfaces/services'; export type OutputFormat = 'json' | 'pretty-json' | 'table'; export declare abstract class BaseCommand extends Command { static baseFlags: { fields: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>; format: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>; quiet: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>; }; protected authService: IAuthService; protected calendarService: ICalendarService; protected configService: IConfigService; protected fields?: string[]; protected format: OutputFormat; protected i18nService: II18nService; protected quiet: boolean; protected getContainer(): import("tsyringe").DependencyContainer; init(): Promise<void>; /** * Initialize calendar service with authentication * Must be called by commands that need calendar access */ protected initCalendarService(): Promise<void>; /** * Initialize i18n service for translations * Must be called by commands that need i18n support */ protected initI18nService(): Promise<void>; protected logError(message: string): never; protected logResult(message: string): void; protected logStatus(message: string): void; protected outputJson(data: unknown): void; protected t(key: string, options?: unknown): string; }