UNPKG

@catladder/cli

Version:

Panter cli tool for cloud CI/CD and DevOps

25 lines (24 loc) 1.41 kB
import memoizee from "memoizee"; import type { CommandInstance } from "vorpal"; export declare const hasGitlabToken: () => Promise<boolean>; export declare const setupGitlabToken: (vorpal: CommandInstance) => Promise<void>; export declare const getGitlabToken: (vorpal: CommandInstance | null) => Promise<string>; type Method = "GET" | "PUT" | "POST" | "DELETE"; export declare const doGitlabRequest: <T = any>(vorpal: CommandInstance | null, path: string, data?: any, method?: Method) => Promise<T>; export declare const getProjectInfo: (vorpal: CommandInstance | null) => Promise<{ id: string; web_url: string; }>; type GitlabVariable = { variable_type: string; key: string; value: string; protected: boolean; masked: boolean; environment_scope: string; }; export declare const getAllVariables: ((vorpal: CommandInstance | null, n?: any) => Promise<Array<GitlabVariable>>) & memoizee.Memoized<(vorpal: CommandInstance | null, n?: any) => Promise<Array<GitlabVariable>>>; export declare const getVariableValueByRawName: (vorpal: CommandInstance, rawName: string) => Promise<string>; export declare const clearBackups: (vorpal: CommandInstance, keep: number) => Promise<void>; export declare const upsertAllVariables: (vorpal: CommandInstance, variables: Record<string, any>, env: string, componentName: string, backup?: boolean, masked?: boolean) => Promise<void>; export {};