Closed donaldcampbelljr closed 9 months ago
Potential solutions: use argcomplete https://kislyuk.github.io/argcomplete/ https://stackoverflow.com/questions/14597466/custom-tab-completion-in-python-argparse/15245680
Here's how I did it in the past:
these are bash functions. they rely on an autocomplete CLI parameter. It's implemented here:
Looking at the markmeld example, it appears this can be used in two ways:
mm -c "demo/_markmeld.yaml" --autocomplete
or change to directory that contains a _markmeld.yaml
and run:
mm --autocomplete
If items exist under targets
, they are displayed in the CLI. Below example would display default
as the target:
targets:
default:
jinja_template: md_template.jinja
recursive_render: false
However, I'm not able to use tab complete when specifying targets.
looper couldn't tab-complete