UNPKG

@liara/cli

Version:

The command line interface for Liara

72 lines (71 loc) 3.21 kB
import Command from '../../base.js'; import ILiaraJSON from '../../types/liara-json.js'; interface IGitInfo { branch: string | null; message: string | null; commit: string | null; committedAt: string | null; remote: string | null; author: { email: string | null; name: string | null; }; tags: string[]; } interface IRelease { _id: string; type: string; imageName: string; projectType: string; state: string; port: number; buildLocation: string; buildTimeout: number; maxImageLayerSize: number; gitInfo: IGitInfo; client?: string; disks: any[]; createdAt: string; finishedAt: string | null; tag: string; sourceAvailable: boolean; } interface IReleasesResponse { total: number; currentRelease: string; readyReleasesCount: number; releases: IRelease[]; platform: string; } export default class AppLogs extends Command { #private; static description: string; static flags: { app: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>; since: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>; timestamps: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>; follow: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>; colorize: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>; release: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>; 'last-lines': import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>; help: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<void>; dev: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>; debug: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>; 'api-token': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>; account: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>; 'team-id': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>; }; static aliases: string[]; run(): Promise<void>; fetchLogs: (since: number, appName: string, releaseId?: string, last_lines?: boolean) => Promise<{ values: [string, string]; releaseTag: string; }[]>; fetchReleases: (appName: string) => Promise<IReleasesResponse>; getReleaseIdFromTag: (appName: string, tag: string) => Promise<string | undefined>; getReleaseTagFromId: (appName: string, releaseId: string) => Promise<string | undefined>; sleep(miliseconds: number): Promise<unknown>; readProjectConfig(projectPath: string): ILiaraJSON; getStart(since: string): number; } export {};