UNPKG

@catladder/cli

Version:

Panter cli tool for cloud CI/CD and DevOps

15 lines (14 loc) 524 B
declare class GlobalScriptFunction { name: string; script: string; constructor(name: string, script: string); toBashFunction(): string; invoke(...args: string[]): string; } export declare const globalScriptFunctions: Map<string, GlobalScriptFunction>; /** * registers a global script function * only use that in top-level scopes as it will attach the function to the global scope */ export declare const registerGlobalScriptFunction: (name: string, script: string) => GlobalScriptFunction; export {};