1 | import { App, CommandInstanceInfo, CommandLineInputs, CommandLineOptions, CommandMetadata, CommandPreRun } from '../definitions';
|
2 | import { Command } from '../lib/command';
|
3 | export declare class LinkCommand extends Command implements CommandPreRun {
|
4 | getMetadata(): Promise<CommandMetadata>;
|
5 | preRun(inputs: CommandLineInputs, options: CommandLineOptions): Promise<void>;
|
6 | run(inputs: CommandLineInputs, options: CommandLineOptions, runinfo: CommandInstanceInfo): Promise<void>;
|
7 | private getAppClient;
|
8 | private getUserClient;
|
9 | lookUpApp(id: string): Promise<App>;
|
10 | createApp({ name }: {
|
11 | name: string;
|
12 | }, runinfo: CommandInstanceInfo): Promise<string>;
|
13 | linkApp(app: App, runinfo: CommandInstanceInfo): Promise<void>;
|
14 | linkGithub(app: App): Promise<string | undefined>;
|
15 | confirmGithubRepoExists(): Promise<void>;
|
16 | oAuthProcess(userId: number): Promise<void>;
|
17 | needsAssociation(app: App, userId: number): Promise<boolean>;
|
18 | connectGithub(app: App, repoId: number, branches: string[]): Promise<string | undefined>;
|
19 | formatRepoName(fullName: string): string;
|
20 | chooseApp(apps: App[]): Promise<string>;
|
21 | selectGithubRepo(): Promise<number>;
|
22 | selectGithubBranches(repoId: number): Promise<string[]>;
|
23 | }
|