Add --completion={bash,zsh,fish} (#11818)

Make `--bash-completion` an alias of `--completion=bash`.

Reorganize option parsing code using a new data structure OptionSpec,
which can encode the type of completion needed by each option.

Add new unexported module Text.Pandoc.Completion.

Unexported module Text.Pandoc.CommandLineOptions: export OptionSpec.

Closes #8542.
This commit is contained in:
wzy
2026-08-21 04:38:53 +08:00
committed by John MacFarlane
parent 3105b38470
commit 0ce83fb133
7 changed files with 1096 additions and 335 deletions
File diff suppressed because one or more lines are too long