st2common/st2common/util/actionalias_matching.py
def list_format_strings_from_aliases(aliases):
    '''
    List patterns from a collection of alias objects

    :param aliases: The list of aliases
    :type  aliases: ``list`` of :class:`st2common.models.api.action.ActionAliasAPI`

    :return: A description of potential execution patterns in a list of aliases.
    :rtype: ``list`` of ``list``
    '''
    patterns = []
    for alias in aliases:
        for format_ in alias.formats:
            display, representations = normalise_alias_format_string(format_)
            if display and len(representations) == 0:
                patterns.extend([(display, [])])
            else:
                patterns.extend([(display, representation) for representation in representations])
    return patterns

    List patterns from a collection of alias objects

    :param aliases: The list of aliases
    :type  aliases: ``list`` of :class:`st2common.models.api.action.ActionAliasAPI`

    :return: A description of potential execution patterns in a list of aliases.
    :rtype: ``list`` of ``list``
    
List patterns from a collection of alias objects
List patterns from a collection of alias objects
def list_format_strings_from_aliases(aliases):
    patterns = []
    for alias in aliases:
        for format_ in alias.formats:
            display, representations = normalise_alias_format_string(format_)
            if display and len(representations) == 0:
                patterns.extend([(display, [])])
            else:
                patterns.extend([(display, representation) for representation in representations])
    return patterns
def list_format_strings_from_aliases ( aliases ) : patterns = [ ] for alias in aliases : for format_ in alias . formats : display , representations = normalise_alias_format_string ( format_ ) if display and len ( representations ) == 0 : patterns . extend ( [ ( display , [ ] ) ] ) else : patterns . extend ( [ ( display , representation ) for representation in representations ] ) return patterns
List patterns from a collection of alias objects
List patterns from a collection of alias objects
'''
    List patterns from a collection of alias objects

    :param aliases: The list of aliases
    :type  aliases: ``list`` of :class:`st2common.models.api.action.ActionAliasAPI`

    :return: A description of potential execution patterns in a list of aliases.
    :rtype: ``list`` of ``list``
    '''
A description of potential execution patterns in a list of aliases.
A description of potential execution patterns in a list of aliases .
``list`` of ``list``
aliases
The list of aliases
The list of aliases