• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sripwoud / cza / 18127587707

30 Sep 2025 10:58AM UTC coverage: 92.042% (-0.03%) from 92.073%
18127587707

push

github

web-flow
feat: add --json flag to list command (#42)

Adds machine-readable JSON output to the list command for scripting and automation.

Changes:
- Add serde_json dependency to workspace
- Add --json flag to ListArgs struct
- Implement JSON serialization of template registry
- Add JsonTemplate struct for output format
- Update existing tests to include json: false
- Add 2 new unit tests for JSON functionality
- Add integration test for --json flag
- Update README with --json usage example

JSON output includes all template fields: key, name, description, repository, subfolder, and frameworks array.

56 of 62 new or added lines in 1 file covered. (90.32%)

1 existing line in 1 file now uncovered.

1411 of 1533 relevant lines covered (92.04%)

7.96 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

93.08
/cli/src/cmd/list.rs


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc