1 | import { Authentications, TAuthentications } from '@bearer/types/lib/authentications';
|
2 | import { flags } from '@oclif/command';
|
3 | import BaseCommand from '../base-command';
|
4 | export declare const authTypes: TAuthentications;
|
5 | export default class New extends BaseCommand {
|
6 | static description: string;
|
7 | static flags: {
|
8 | help: import("@oclif/parser/lib/flags").IBooleanFlag<void>;
|
9 | template: flags.IOptionFlag<string | undefined>;
|
10 | directory: flags.IOptionFlag<string | undefined>;
|
11 | skipInstall: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
12 | withViews: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
13 | force: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
14 | authType: flags.IOptionFlag<string | undefined>;
|
15 | path: flags.IOptionFlag<string | undefined>;
|
16 | silent: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
17 | };
|
18 | static args: {
|
19 | name: string;
|
20 | }[];
|
21 | copyDestinationFolder: string;
|
22 | private path?;
|
23 | private name;
|
24 | run(): Promise<void>;
|
25 | private createIntegrationStructure;
|
26 | private createAuthFiles;
|
27 | private createViewsStructure;
|
28 | private getVars;
|
29 | }
|
30 | export declare function askForAuthType(): Promise<Authentications>;
|
31 | export declare function bearerRestClient(authType: Authentications): string;
|
32 | export declare function cloneRepository(url: string, destination: string, logger: BaseCommand): Promise<void>;
|
33 | export declare function selectFolder(location: string, { selectedPath, integrationRootProof }: {
|
34 | integrationRootProof?: string;
|
35 | selectedPath?: string;
|
36 | }): Promise<{
|
37 | selected: string;
|
38 | }>;
|
39 | export declare function defineLocationPath(logger: {
|
40 | warn: (message: string) => void;
|
41 | }, { name, cwd, force }: {
|
42 | name: string;
|
43 | cwd: string;
|
44 | force?: boolean | undefined;
|
45 | }): Promise<string>;
|
46 | export declare function initViewsVars(authType: Authentications): {
|
47 | setup: string;
|
48 | };
|