add --json-error-messages option #32
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "json-error-output"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR adds the option
--json-error-messagestodtcsubcommands. If provided, the subcommands will output error records (one JSON record for each error) in JSONL format on stdout at the end of the command execution. These records are machine-processable.dtc import3bf345ea87import476881755eimporta0624f9188Align error output in `import` with the output format of the other subcommands, i.e., console.print('[red]Error[/red]: ...')importc0294b8a2eexporta7aa1491cdauto-curatebb6e251cdbexport0b328b1a9cget-recordsef1ec90386list-incoming8739b44ecbmaintenance27d3aab35fpost-records2a543f9054read-pages32029e8138click.echofor output in subcommandversion1d364c01d9915f361a63to1d364c01d9