1 | import Command from '../../base';
|
2 | import { State } from '../../types';
|
3 | import { flags } from '@oclif/parser';
|
4 | export interface SetSecretInputs {
|
5 | state: State;
|
6 | key: string;
|
7 | value: string;
|
8 | }
|
9 | export default class SecretsSet extends Command {
|
10 | static description: string;
|
11 | static flags: {
|
12 | key: flags.IOptionFlag<string | undefined>;
|
13 | value: flags.IOptionFlag<string | undefined>;
|
14 | };
|
15 | validateRegisterInput: (input: string) => Promise<string | boolean>;
|
16 | promptForSecret: (input: SetSecretInputs) => Promise<SetSecretInputs>;
|
17 | setSecret: (inputs: SetSecretInputs) => Promise<SetSecretInputs>;
|
18 | logMessage: (inputs: SetSecretInputs) => SetSecretInputs;
|
19 | sendAnalytics: (inputs: SetSecretInputs) => Promise<SetSecretInputs>;
|
20 | validateFlags: (k: string | undefined, v: string | undefined) => void;
|
21 | run(): Promise<void>;
|
22 | }
|