1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | import Command from '../base';
|
12 | import { OpCommand, OpWorkflow, Config } from '../types';
|
13 | declare type OpFilter = {
|
14 | opTeamName: string;
|
15 | opName: string;
|
16 | opVersionName: string;
|
17 | };
|
18 | interface AddInputs {
|
19 | opName: string;
|
20 | config: Config;
|
21 | ops: (OpCommand | OpWorkflow)[];
|
22 | opFilter: OpFilter;
|
23 | addedOpID: number;
|
24 | }
|
25 | export default class Add extends Command {
|
26 | static description: string;
|
27 | static flags: {
|
28 | help: import("@oclif/parser/lib/flags").IBooleanFlag<void>;
|
29 | };
|
30 | static args: {
|
31 | name: string;
|
32 | description: string;
|
33 | }[];
|
34 | ops: (OpCommand | OpWorkflow)[];
|
35 | promptFilter: (inputs: AddInputs) => Promise<AddInputs>;
|
36 | isOpAlreadyInTeam: (opResults: (OpCommand | OpWorkflow)[], opName: string, opTeamName: string, opVersionName: string, myTeamName: string) => boolean;
|
37 | getAllMyOps: (config: Config) => Promise<(OpCommand | OpWorkflow)[]>;
|
38 | getAllPublicOps: (inputs: AddInputs) => Promise<AddInputs>;
|
39 | private _fuzzyFilterParams;
|
40 | _formatOpOrWorkflowName: (op: OpCommand | OpWorkflow) => string;
|
41 | private _autocompleteSearch;
|
42 | selectOpPrompt: (inputs: AddInputs) => Promise<AddInputs>;
|
43 | checkValidOpName: (inputs: AddInputs) => Promise<AddInputs>;
|
44 | splitOpName: (inputs: AddInputs) => AddInputs;
|
45 | addOp: (inputs: AddInputs) => Promise<AddInputs>;
|
46 | sendAnalytics: (inputs: AddInputs) => Promise<AddInputs>;
|
47 | getSuccessMessage: (inputs: AddInputs) => AddInputs;
|
48 | run(): Promise<void>;
|
49 | }
|
50 | export {};
|