def get_completions()

in service/azservice/__main__.py [0:0]


def get_completions(group_index, command_table, snippets, query, verbose=False):
    if 'argument' in query:
        return get_argument_value_completions(command_table, query, verbose)
    if 'subcommand' not in query:
        return get_snippet_completions(command_table, snippets) + get_prefix_command_completions(group_index, command_table) + [AZ_COMPLETION]
    command_name = query['subcommand']
    if command_name in command_table:
        return get_argument_name_completions(command_table, query) + \
            get_global_argument_name_completions(query)
    if command_name in group_index:
        return get_command_completions(group_index, command_table, command_name)
    if verbose: print('Subcommand not found ({})'.format(command_name), file=stderr)
    return []