Skip to content
Myr

Document completion of path in shells (#3819)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Rowlando13 · committed by GitHub · parents cbb5b2d, c4597ed · Browse files · 2 files+50 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+50 added−0 removed

  • other:+50 added−0 removed

2 files+50 added−0 removed

modified:docs/faqs.md+48 added
modified:docs/shell-completion.md+2 added
159 unmodified lines
160def cli(ev):161 click.echo(os.environ[ev])162```163164See {ref}`custom-completions-show-the-full-value` in the FAQ for why these values are displayed in full, while `Path` completions show only the last component of the path.165166## Overriding Value Completion167168Value completions for a parameter can be customized without a custom type by providing a `shell_complete` function. The169function is used instead of any completion provided by the type. It is passed 3 positional arguments:
108 unmodified lines