UNPKG

bktide

Version:

Command-line interface for Buildkite CI/CD workflows with rich shell completions (Fish, Bash, Zsh) and Alfred workflow integration for macOS power users

11 lines 456 B
import { BaseArtifactFormatter } from './Formatter.js'; export class JsonFormatter extends BaseArtifactFormatter { name = 'json'; formatArtifacts(artifacts, options) { if (options?.hasError) { return JSON.stringify({ error: options.errorMessage || 'Failed to fetch artifacts' }, null, 2); } return JSON.stringify({ count: artifacts.length, artifacts }, null, 2); } } //# sourceMappingURL=JsonFormatter.js.map