@cloud-cli/env
Version:
Storage for app environment variables
39 lines (38 loc) • 914 B
TypeScript
export interface EnvEntry {
app: string;
key: string;
value: string;
}
export interface App {
app: string;
name?: string;
}
export interface ListFilters {
app?: string;
key?: string;
}
export interface KeyValue {
key: string;
value?: string;
}
export interface AppKeyValue extends App, KeyValue {
}
declare function show(options: App): EnvEntry[];
declare function list(filters?: ListFilters): EnvEntry[];
declare function apps(): string[];
declare function setVar(options: AppKeyValue): {
app: string;
key: string;
value: string;
};
declare function removeVar(options: AppKeyValue): boolean;
declare function getVar(options: Omit<AppKeyValue, 'value'>): EnvEntry;
declare const _default: {
get: typeof getVar;
set: typeof setVar;
remove: typeof removeVar;
show: typeof show;
apps: typeof apps;
list: typeof list;
};
export default _default;