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

No autocomplete for second level commands #12

Closed mirhmousavi closed 4 years ago

mirhmousavi commented 4 years ago

Hi thanks for this fantastic library. I got a problem with command auto completion, when I run my application I get command suggestion when press tab on first level commands (here is user) but when I type user or user and tab again I won't get any suggestions this is a small view of my project.

import click

@shell(prompt=" > ")
def entry_point():
    pass

@click.group(name="user")
@click.pass_context
def main(ctx):
    pass

@main.command("create")
@click.option("-name", type=str, required=True)
@click.pass_context
def create(ctx, name):
    pass

entry_point.add_command(main)
entry_point()

is this a feature, bug or .... thanks

mirhmousavi commented 4 years ago

we ended up using click-repl thanks