@cto.ai/ops
Version:
💻 CTO.ai Ops - The CLI built for Teams 🚀
23 lines (22 loc) • 873 B
TypeScript
import Command from '../../base';
import { State } from '../../types';
import { flags } from '@oclif/parser';
export interface SetSecretInputs {
state: State;
key: string;
value: string;
}
export default class SecretsSet extends Command {
static description: string;
static flags: {
key: flags.IOptionFlag<string | undefined>;
value: flags.IOptionFlag<string | undefined>;
};
validateRegisterInput: (input: string) => Promise<string | boolean>;
promptForSecret: (input: SetSecretInputs) => Promise<SetSecretInputs>;
setSecret: (inputs: SetSecretInputs) => Promise<SetSecretInputs>;
logMessage: (inputs: SetSecretInputs) => SetSecretInputs;
sendAnalytics: (inputs: SetSecretInputs) => Promise<SetSecretInputs>;
validateFlags: (k: string | undefined, v: string | undefined) => void;
run(): Promise<void>;
}