Skip to content

Click Shell Executes Callback on Tab-Complete #24

@fortmcas

Description

@fortmcas

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

  • Python version: 3.5
  • Click version: click-shell==1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions