Everything looks good. Here's a summary of the changes:
cmd/resolve.go - Default output is now a tree, JSON via -f json:
- Added
-f, --format flag (default "text") matching every other command in the codebase
- Default text output renders a
├──/└── tree with name@version on each line, headed by manager (ecosystem)
- JSON output preserved exactly as before, just behind
-f json
- Updated the command's long description and examples
cmd/resolve_internal_test.go (new) - Four tests for the tree renderer:
- Multi-dep with transitive children
- Single dep
- Deep nesting (3 levels)
- No deps (empty tree)
docs/resolve.md - Updated throughout:
- Default example now shows tree output
- JSON example shown separately with
-f json
-f, --format added to flags section
- Multi-ecosystem example shows tree output by default
- All jq/piping examples updated to include
-f json
- Go program example updated