(cli, prog_name)
return True
Do the powershell completion

    Parameters
    ----------
    cli : click.Command
        The main click Command of the program
    prog_name : str
        The program name on the command line

    Returns
    -------
    bool
        True if the completion was successful, False otherwise
Do the powershell completion
Do the powershell completion
def do_powershell_complete(cli, prog_name):
    """Do the powershell completion

    Parameters
    ----------
    cli : click.Command
        The main click Command of the program
    prog_name : str
        The program name on the command line

    Returns
    -------
    bool
        True if the completion was successful, False otherwise
    """
    commandline = os.environ['COMMANDLINE']
    args = split_args(commandline)[1:]
    quote = single_quote
    incomplete = ''
    if args and not commandline.endswith(' '):
        incomplete = args[-1]
        args = args[:-1]
        quote_pos = commandline.rfind(incomplete) - 1
        if quote_pos >= 0 and commandline[quote_pos] == '"':
            quote = double_quote

    for item, help in get_choices(cli, prog_name, args, incomplete):
        echo(quote(item))

    return True
def do_powershell_complete ( cli , prog_name ) : commandline = os . environ [ 'COMMANDLINE' ] args = split_args ( commandline ) [ 1 : ] quote = single_quote incomplete = '' if args and not commandline . endswith ( ' ' ) : incomplete = args [ - 1 ] args = args [ : - 1 ] quote_pos = commandline . rfind ( incomplete ) - 1 if quote_pos >= 0 and commandline [ quote_pos ] == '"' : quote = double_quote for item , help in get_choices ( cli , prog_name , args , incomplete ) : echo ( quote ( item ) ) return True