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

16 lines 533 B
import { BaseFormatter } from './Formatter.js'; export class JsonFormatter extends BaseFormatter { name = 'json'; formatOrganizations(organizations, _options) { if (!organizations || organizations.length === 0) { return JSON.stringify({ organizations: [] }); } return JSON.stringify({ organizations: organizations.map(org => ({ name: org.name, slug: org.slug })) }, null, 2); } } //# sourceMappingURL=JsonFormatter.js.map