mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-12-12 14:17:46 +00:00
Fix autocomplete for some commands
Auto-completing commands that were imported with `name=...` option was incorrect.
This commit is contained in:
parent
307398a306
commit
d8bea87a2f
@ -38,8 +38,8 @@ def print_help():
|
||||
|
||||
|
||||
click_repl.register_repl(cli, name="ui")
|
||||
cli.add_command(images_command, name="images")
|
||||
cli.add_command(config_command, name="config")
|
||||
cli.add_command(images_command)
|
||||
cli.add_command(config_command)
|
||||
cli.add_command(local)
|
||||
cli.add_command(dev)
|
||||
cli.add_command(android)
|
||||
|
@ -14,6 +14,7 @@ from ..__about__ import __version__
|
||||
|
||||
|
||||
@click.group(
|
||||
name="config",
|
||||
short_help="Configure Open edX",
|
||||
help="""Configure Open edX and store configuration values in $TUTOR_ROOT/config.yml""",
|
||||
)
|
||||
@ -21,7 +22,7 @@ def config_command():
|
||||
pass
|
||||
|
||||
|
||||
@click.command(help="Create and save configuration interactively")
|
||||
@click.command(name="save", help="Create and save configuration interactively")
|
||||
@opts.root
|
||||
@click.option("-y", "--yes", "silent1", is_flag=True, help="Run non-interactively")
|
||||
@click.option("--silent", "silent2", is_flag=True, hidden=True)
|
||||
@ -376,6 +377,6 @@ def config_path(root):
|
||||
return os.path.join(root, "config.yml")
|
||||
|
||||
|
||||
config_command.add_command(save_command, name="save")
|
||||
config_command.add_command(save_command)
|
||||
config_command.add_command(printroot)
|
||||
config_command.add_command(printvalue)
|
||||
|
@ -7,7 +7,7 @@ from .. import opts
|
||||
from .. import utils
|
||||
|
||||
|
||||
@click.group(short_help="Manage docker images")
|
||||
@click.group(name="images", short_help="Manage docker images")
|
||||
def images_command():
|
||||
pass
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user