UNPKG

cli-stash

Version:

CLI application to manage and work with Atlassian Stash. Work with your Stash project and repositories from Command lines.

61 lines (60 loc) 3.62 kB
import { Command } from "@oclif/core"; import { OutputArgs, OutputFlags } from "@oclif/core/lib/interfaces"; import { PageOptions } from "stash-connector"; import { Config } from "./config"; import { StashCLIResponse } from "./stashResponse"; import { UX } from "./ux"; export declare class BuildFlags { static parseArray(str: string): Promise<string[]>; static parseKeyValue(str: string): Promise<any>; static alias: import("@oclif/core/lib/interfaces").OptionFlag<string>; static csv: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>; static extended: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>; static filter: (description: string) => import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>; static context: (description: string) => import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>; static input: { keyvalue: (doc: string, required?: boolean | undefined, exclusive?: string[] | undefined) => import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>; jsonData: (doc: string, required?: boolean | undefined, exclusive?: string[] | undefined) => import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>; data: (doc: string, required?: boolean | undefined, exclusive?: string[] | undefined) => import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>; jsonFile: (doc: string, required?: boolean | undefined, exclusive?: string[] | undefined) => import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>; file: (doc: string, required?: boolean | undefined, exclusive?: string[] | undefined) => import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>; }; static output: { file: (doc: string, required?: boolean | undefined, exclusive?: string[] | undefined) => import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>; folder: (doc: string, required?: boolean | undefined, exclusive?: string[] | undefined) => import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>; }; static pagination: { all: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>; limit: import("@oclif/core/lib/interfaces").OptionFlag<number>; start: import("@oclif/core/lib/interfaces").OptionFlag<number>; }; } export declare class BaseCommand extends Command { protected localConfig: Config; protected flags: OutputFlags<any>; protected args: OutputArgs; static flags: OutputFlags<any>; static loginRequired: boolean; static enableJsonFlag: boolean; protected ux: UX; protected get statics(): typeof BaseCommand; get pageOptions(): PageOptions | undefined; get allPageOptions(): PageOptions | undefined; validateRequiredAndExclusives(flagsConfig: OutputFlags<any>): void; hasInputData(): any; getJSONInputData(): any; getInputData(): any; parseArray(str: string): string[]; getRecordsFoundText(recordSize: number, recordName: string): string; getRecordRetrievedText(recordName: string): string; getRecordCreatedText(recordName: string): string; getRecordDeletedText(recordName: string): string; getRecordUpdatedText(recordName: string): string; checkLogin(): void; log(message: string, level: 'info' | 'debug' | 'warn' | 'error'): void; init(): Promise<void>; processError(response: StashCLIResponse<any>, error: any): void; catch(err: any): Promise<void>; finally(err: any): Promise<any>; run(): Promise<any>; }