5970456a54
CI / check (pull_request) Failing after 8m30s
Rename packages/ subdirectories to match their @united-workforce/* scope: cli-workflow → cli workflow-agent-builtin → agent-builtin workflow-agent-claude-code → agent-claude-code workflow-agent-hermes → agent-hermes workflow-dashboard → dashboard workflow-protocol → protocol workflow-util-agent → util-agent workflow-util → util Updated all tsconfig references, scripts, and active docs. Historical docs (docs/plans/, docs/superpowers/) left as-is. Closes #21
13 lines
325 B
TypeScript
13 lines
325 B
TypeScript
import { stringify } from "yaml";
|
|
|
|
export type OutputFormat = "json" | "yaml";
|
|
|
|
export function formatOutput(data: unknown, format: OutputFormat): string {
|
|
switch (format) {
|
|
case "json":
|
|
return JSON.stringify(data);
|
|
case "yaml":
|
|
return stringify(data, { aliasDuplicateObjects: false }).trimEnd();
|
|
}
|
|
}
|