MCPcopy
hub / github.com/MiniMax-AI/cli / formatOutput

Function formatOutput

src/output/formatter.ts:16–23  ·  view source on GitHub ↗
(data: unknown, format: OutputFormat)

Source from the content-addressed store, hash-verified

14}
15
16export function formatOutput(data: unknown, format: OutputFormat): string {
17 switch (format) {
18 case 'json':
19 return formatJson(data);
20 case 'text':
21 return formatText(data);
22 }
23}
24
25export function dryRun(config: { dryRun?: boolean; output?: string }, body: unknown): boolean {
26 if (!config.dryRun) return false;

Callers 15

formatter.test.tsFile · 0.90
runFunction · 0.90
runFunction · 0.90
runFunction · 0.90
runFunction · 0.90
runFunction · 0.90
runFunction · 0.90
runFunction · 0.90
runFunction · 0.90
runFunction · 0.90
runFunction · 0.90
runFunction · 0.90

Calls 2

formatJsonFunction · 0.90
formatTextFunction · 0.90

Tested by

no test coverage detected