add --json-error-messages option #32

Merged
cmo merged 15 commits from json-error-output into master 2026-02-11 10:16:06 +00:00

15 commits

Author SHA1 Message Date
Christian Monch
1d364c01d9 use click.echo for output in subcommand version 2026-02-11 11:05:29 +01:00
Christian Monch
32029e8138 return non-zero exist status on error in read-pages 2026-02-11 11:04:37 +01:00
Christian Monch
2a543f9054 clean up subcommand post-records 2026-02-11 11:02:30 +01:00
Christian Monch
27d3aab35f return non-zero status on error in maintenance 2026-02-11 10:51:41 +01:00
Christian Monch
8739b44ecb return non-zero status on error in list-incoming 2026-02-11 10:49:43 +01:00
Christian Monch
ef1ec90386 exit non-zero on error in subcommand get-records 2026-02-11 10:38:21 +01:00
Christian Monch
0b328b1a9c catch only expected errors in subcommand export 2026-02-11 10:32:58 +01:00
Christian Monch
0c1cd76c65 improve subcommand clean-incoming
Return non-zero exit status on error.

Align error printing with other subcommands
2026-02-11 10:22:26 +01:00
Christian Monch
bb6e251cdb fix exit status of subcommand auto-curate 2026-02-11 10:17:31 +01:00
Christian Monch
a7aa1491cd add --json-error-message to subcommand export
This commit adds the option `--json-error-messages`
to the `dtc` subcommand `export`.

It also ensures that an non-zero exit status is
returned, if an error occurs.
2026-02-11 09:27:17 +01:00
Christian Monch
c0294b8a2e clean up subcommand import 2026-02-11 08:45:40 +01:00
Christian Monch
a0624f9188 unify error printing in import
Align error output in `import` with the output
format of the other subcommands, i.e.,

console.print('[red]Error[/red]: ...')
2026-02-10 22:56:07 +01:00
Christian Monch
476881755e add json-error output to import 2026-02-10 22:47:31 +01:00
Christian Monch
3bf345ea87 fix status code signaling in dtc import 2026-02-10 17:17:27 +01:00
Christian Monch
dab82b987f add json-error output to delete-records
Add an option to write information about failed
delete operations to stdout in JSONL format.

Fix exit status handling, errors now lead to
non-zero exit status.
2026-02-10 17:10:31 +01:00