Make opening and closing duct entries "configurable" (e.g. DUCT_{OPENING,REPORT}_FORMAT)
- Dominant language
- Python
- Stars
- 12
- Forks
- 6
- Avg merge
- 11d 11h
- Merged PRs (30d)
- 1
Description
Stems from comment on
- https://github.com/con/duct/issues/64
but triggered to become separate issue by
- https://github.com/con/duct/issues/65#issuecomment-2159097669
Define
- DUCT_OPENING_FORMAT
- DUCT_REPORT_FORMAT
config/env vars and default to current "value" (see #64) to be formatted by records, and possibly add handling of colors by establishing additional dictionary of `ansi_colors` (and may be conditional one likes `exit_code_ansi_color`) so you could make it colored as you wish, but then give flexibility to user to override and also centrally disable all the colors .
See e.g. also https://github.com/datalad/datalad/blob/HEAD/datalad/support/ansi_colors.py for possible reuse of color definitions etc.
Contributor guide
Assessment
This issue has not been assessed yet.