< Summary - Envilder CLI

Information
Class: src/envilder/core/application/pushSingle/PushSingleCommand.ts
Assembly: Default
File(s): src/envilder/core/application/pushSingle/PushSingleCommand.ts
Tag: 561_41292037308
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 23
Line coverage: 100%
Branch coverage
100%
Covered branches: 1
Total branches: 1
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

File(s)

src/envilder/core/application/pushSingle/PushSingleCommand.ts

#LineLine coverage
 1import type { MapFileTarget } from '../../domain/MapFileUpdate.js';
 2
 3export class PushSingleCommand {
 4  constructor(
 265    public readonly key: string,
 266    public readonly value: string,
 267    public readonly secretPath: string,
 8    /** Map file to record the mapping in; undefined leaves map files alone. */
 269    public readonly mapFile?: string,
 10    /** Where the secret is pushed to, compared with the map file's target. */
 2611    public readonly target: MapFileTarget = { provider: 'aws' },
 12  ) {}
 13
 14  static create(
 15    key: string,
 16    value: string,
 17    secretPath: string,
 18    mapFile?: string,
 19    target?: MapFileTarget,
 20  ): PushSingleCommand {
 2621    return new PushSingleCommand(key, value, secretPath, mapFile, target);
 22  }
 23}

Methods/Properties

constructor
create