def get_tags(ctx, args, incomplete):
    """Function to return all tags matching the prefix."""
    watson = _bypass_click_bug_to_ensure_watson(ctx)
    for cur_tag in watson.tags:
        if cur_tag.startswith(incomplete):
            yield cur_tag
Function to return all tags matching the prefix.
watson/autocompletion.py