Skip to content
Myr

Starting to add new docs

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

authored by Brett Bethke · committed by Brett Bethke · parent 442a729 · Browse files · 1 file+7 added−4 removed
This commit

State

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

Diff stats

1 file+7 added−4 removed

  • other:+7 added−4 removed

1 file+7 added−4 removed

modified:docs/bashcomplete.rst+7 added-4 removed
28 unmodified lines
29 clone commit copy delete setuser30 $ repo clone -<TAB><TAB>31 --deep --help --rev --shallow -r32 33Additionally, custom suggestions can be given to an argument with the ``autocompletion`` parameter as a list of strings. Example::33Additionally, custom suggestions can be given to an argument with the34``autocompletion`` parameter. ``autocompletion`` may be a list of strings, or a35callback function that returns a list of strings.3637.. click:example::3837 @cli.command()38 @click.argument("name", type=click.STRING, autocompletion=["John", "Simon", "Doe"])39 def cmd1(name):39 @click.command()40 @click.argument("name", type=click.STRING, autocompletion=["John", "Simon", "Doe"])41 def cmd1(name):42 click.echo('Name: %s' % name)43 444546Activation47----------
35 unmodified lines