You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.
Across both PCT and PRM, each command should support --format json. We should have a handler that can be called to output in JSON format. Implementation will need to be determined after some analysis of zerolog's capabilities.
The preliminary ideas are to have a schema of:
{"error": "", "data": {}, "logs": []}
Error: The error message being logged from the call to log.Error() Data: JSON from the command output to return (e.g. pct new --list --format json) Logs: If possible, the logs that were being sent to zerolog
Considerations for logging:
If it not possible to output the JSON formatted logs to within the log parameter, then we should determine whether we write the logs to disk, instead
At INFO level, there should be no logs output
Zerolog should not output anything to console when --format json is specified
Acceptance Criteria
TBD when some more investigation is done
The text was updated successfully, but these errors were encountered:
Currently, console output is handled by
zerolog
using thezerolog.ConsoleWriter
formatter.The
pct new --list
command supports the--format json
flag, to output the templates in JSON format.Across both PCT and PRM, each command should support
--format json
. We should have a handler that can be called to output in JSON format. Implementation will need to be determined after some analysis of zerolog's capabilities.The preliminary ideas are to have a schema of:
Error: The error message being logged from the call to
log.Error()
Data: JSON from the command output to return (e.g.
pct new --list --format json
)Logs: If possible, the logs that were being sent to zerolog
Considerations for logging:
log
parameter, then we should determine whether we write the logs to disk, instead--format json
is specifiedAcceptance Criteria
TBD when some more investigation is done
The text was updated successfully, but these errors were encountered: