aws-nitro-enclaves-cli icon indicating copy to clipboard operation
aws-nitro-enclaves-cli copied to clipboard

Allow opt out of json pretty print in `enclave_process_handle_all_replies`

Open emostov opened this issue 10 months ago • 0 comments

Issue #, if available:

I did not find an issue for this, but I can create one if necessary. The only marginally related issue I saw is #483.

Description of changes:

Currently, all json is pretty printed. For ease of log ingestion/monitoring, this should be a single (unprettified) json line; specifically there should be no new line characters or superfluous indentation.

The change introduced here should not change api of the CLI itself, but instead just introduce the optionality to do non-pretty print for crate users. This change is done by adding a fifth boolean argument to enclave_process_handle_all_replies, which is used to indicate wether or not to pretty print the json. For crate users who want to maintain the status quo, they can simply set this argument to true.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

emostov avatar Oct 09 '23 16:10 emostov