UNPKG

envilder

Version:

A CLI and GitHub Action that securely centralizes your environment variables from AWS SSM or Azure Key Vault as a single source of truth

29 lines 1.29 kB
import type { ILogger } from '../../domain/ports/ILogger.js'; import type { ISecretProvider } from '../../domain/ports/ISecretProvider.js'; import type { IVariableStore } from '../../domain/ports/IVariableStore.js'; import type { PullSecretsToEnvCommand } from './PullSecretsToEnvCommand.js'; export declare class PullSecretsToEnvCommandHandler { private readonly secretProvider; private readonly variableStore; private readonly logger; private static readonly LABEL_WIDTH; private static readonly RULE; constructor(secretProvider: ISecretProvider, variableStore: IVariableStore, logger: ILogger); /** * Handles the PullSecretsToEnvCommand which orchestrates the process of fetching * environment variable values from a secret store and writing them to a local environment file. * * @param command - The PullSecretsToEnvCommand containing mapPath and envFilePath */ handle(command: PullSecretsToEnvCommand): Promise<void>; private loadVariables; private saveEnvFile; private envild; private processSecret; private static describeErrorReason; private logSecretsSection; private logWarnings; private static pad; private static buildSummary; } //# sourceMappingURL=PullSecretsToEnvCommandHandler.d.ts.map