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

23 lines 871 B
import { PlainTextFormatter } from './PlainTextFormatter.js'; import { JsonFormatter } from './JsonFormatter.js'; import { logger } from '../../services/logger.js'; /** * Get the appropriate annotation formatter based on the format string * @param format The format to use ('plain', 'json', or 'alfred') * @returns An AnnotationFormatter instance */ export function getAnnotationFormatter(format = 'plain') { // Normalize the format string const normalizedFormat = format.toLowerCase().trim(); switch (normalizedFormat) { case 'json': return new JsonFormatter(); case 'plain': case 'text': return new PlainTextFormatter(); default: logger.warn(`Unknown format '${format}', defaulting to plain text`); return new PlainTextFormatter(); } } //# sourceMappingURL=index.js.map