@lcap/cli
Version:
utils for lcap
23 lines • 850 B
TypeScript
import type { Arguments } from 'yargs';
export interface TokenData {
/** 发布密钥 */
token?: string;
/** 发布密钥所在文件 */
tokenFile?: string;
}
export declare function getSecretByFile<T>(file: string): Promise<T>;
export declare function getSecretByToken<T = string>(token: string): T;
export declare function transformSecretToToken(data: object): string;
export declare const tokenOptions: {
readonly token: {
readonly type: "string";
readonly describe: "发布密钥";
};
readonly tokenFile: {
readonly type: "string";
readonly describe: "发布密钥所在文件";
};
};
export declare function tokenCheck(argv: Arguments<TokenData>): boolean;
export declare function getSecretByOption<T>(root: string, opt: TokenData): Promise<T>;
//# sourceMappingURL=secret.d.ts.map