clarkperkins / click-shell

An extension to click that easily turns your click app into a shell utility
BSD 3-Clause "New" or "Revised" License
88 stars 17 forks source link

Click Shell Executes Callback on Tab-Complete #24

Open fortmcas opened 4 years ago

fortmcas commented 4 years ago

Expected Behavior

Tab completing a command using click should simply autocomplete the text in window, not execute the callback until the command as a whole is executed.

@click.option(
    '--password',
    is_flag=True,
    type=bool,
    default=False,
    help='Password option',
    callback=prompt_password,
    hide_input=True,
)

Actual Behavior

Callback executes and prompts for password in-line after tab complete

N/A

Environment