Skip to content

feat: Add machine-readable JSON output for inspect command functions#563

Merged
Timi16 merged 3 commits intoTimi16:mainfrom
Olagoke22:feature/507-inspect-json-functions
Mar 25, 2026
Merged

feat: Add machine-readable JSON output for inspect command functions#563
Timi16 merged 3 commits intoTimi16:mainfrom
Olagoke22:feature/507-inspect-json-functions

Conversation

@Olagoke22
Copy link
Contributor

  • Add --format flag to InspectArgs (pretty/json, default: pretty)
  • Implement output_functions() for function listing with JSON support
  • Create FunctionListing,FunctionSignatureJson, and FunctionParam structures
  • Optimize code by removing redundant println!/log_display calls
  • Add log_both(), log_both_if_some(), and section_header() helpers
  • Add comprehensive unit and integration tests
  • Update man page with --format option and examples
  • Add new documentation file with use cases and JSON schema

Fixes #507: Stable machine-readable JSON output for signature discovery

- Add --format flag to InspectArgs (pretty/json, default: pretty)
- Implement output_functions() for function listing with JSON support
- Create FunctionListing,FunctionSignatureJson, and FunctionParam structures
- Optimize code by removing redundant println!/log_display calls
- Add log_both(), log_both_if_some(), and section_header() helpers
- Add comprehensive unit and integration tests
- Update man page with --format option and examples
- Add new documentation file with use cases and JSON schema

Fixes Timi16#507: Stable machine-readable JSON output for signature discovery
@drips-wave
Copy link

drips-wave bot commented Mar 25, 2026

@Olagoke22 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

The .range() method is not available on the value_parser result
in the current clap version. Remove range validators that were
causing compilation errors.
Man pages should be auto-generated from CLI source, not manually edited.
Remove the EXAMPLES section that was added manually. The --format flag
documentation will be auto-generated from InspectArgs.
@Timi16 Timi16 merged commit 7d93352 into Timi16:main Mar 25, 2026
4 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inspect command: add machine-readable JSON output for exported function listings

2 participants