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

20 lines 766 B
import { PlainTextFormatter } from './PlainTextFormatter.js'; import { JsonFormatter } from './JsonFormatter.js'; import { AlfredFormatter } from './AlfredFormatter.js'; import { logger } from '../../services/logger.js'; export function getArtifactFormatter(format = 'plain') { const normalizedFormat = format.toLowerCase().trim(); switch (normalizedFormat) { case 'json': return new JsonFormatter(); case 'alfred': return new AlfredFormatter(); case 'plain': case 'text': return new PlainTextFormatter(); default: logger.warn(`Unknown format '${format}', defaulting to plain text`); return new PlainTextFormatter(); } } //# sourceMappingURL=index.js.map