Esempio n. 1
0
def _ac_opspec(incomplete, ctx, **_kw):
    ops = _ac_operations(incomplete, ctx)
    if not incomplete and ops:
        return ops
    return (ops + click_util.completion_filename(ext=["py"]) +
            click_util.completion_command())
Esempio n. 2
0
def _ac_cmd(ctx, **_kw):
    if ctx.params.get("remote"):
        return []
    return click_util.completion_command()
Esempio n. 3
0
def _ac_python(**_kw):
    return click_util.completion_command("python*[^-config]")