Unverified Commit f28f50af authored by Hong Minhee's avatar Hong Minhee
Browse files

Fix CLI JSON output regression in lookup command

The -r/--raw, -C/--compact, and -e/--expand options were incorrectly
outputting Deno's object inspection format instead of valid JSON.

This commit:

- Consolidates formatting logic into a single formatObject() function
- Adds proper JSON stringification for JSON output modes
- Maintains Deno.inspect() for non-JSON display modes
- Preserves syntax highlighting for colored JSON output

Fixes https://github.com/fedify-dev/fedify/issues/357
parent c5b1774b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment