feat: Add comprehensive verbose logging support across all cocli commands #46
+1,086
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements comprehensive verbose logging capabilities across all cocli commands as requested in issue #45, significantly enhancing debugging, troubleshooting, and user experience.
Changes Made
Core Implementation
Enhanced Commands
Testing & Documentation
Usage Examples
Basic verbose output:
$ cocli comid display --file data/comid/comid-psa-refval.cbor --verbose [INFO] Collecting CoMID files from specified paths [INFO] Found 1 CoMID files to process [DEBUG] Reading CoMID file: data/comid/comid-psa-refval.cbor [INFO] Processing file data/comid/comid-psa-refval.cbor (416 bytes) [TRACE] Starting CBOR decoding for file: data/comid/comid-psa-refval.cbor [INFO] Successfully displayed all 1 CoMID filesCoRIM verification with detailed steps:
$ cocli corim verify --file signed-corim.cbor --key key.jwk --verbose [INFO] Starting CoRIM verification process [DEBUG] Reading signed CoRIM file [INFO] Processing file signed-corim.cbor (808 bytes) [DEBUG] No ASN header bytes detected [DEBUG] Decoding COSE Sign1 structure [INFO] Successfully decoded COSE Sign1 structure [INFO] Successfully loaded public key from JWK [TRACE] Public key type: *ecdsa.PublicKey [INFO] Performing cryptographic signature verification [INFO] Signature verification successfulBenefits Delivered
Quality Assurance
Files Modified
This implementation fully addresses the requirements in issue #45 and provides a solid foundation for enhanced debugging and user experience across all cocli commands.
Fixes #45