def _get_trigger(trigger, filename=None, lines=None, return_lines=True):
    '\n    Find the lines where a specific trigger appears.\n\n    Args:\n        trigger (str): string pattern to search for\n        lines (list/None): list of lines\n        filename (str/None): file to read lines from\n\n    Returns:\n        list: indicies of the lines where the trigger string was found and list of lines\n    '
    lines = _get_lines_from_file(filename=filename, lines=lines)
    trigger_indicies = [i for (i, line) in enumerate(lines) if (trigger in line.strip())]
    if return_lines:
        return (trigger_indicies, lines)
    else:
        return trigger_indicies
Find the lines where a specific trigger appears.

Args:
    trigger (str): string pattern to search for
    lines (list/None): list of lines
    filename (str/None): file to read lines from

Returns:
    list: indicies of the lines where the trigger string was found and list of lines
def _get_trigger(trigger, filename=None, lines=None, return_lines=True):
    '\n    Find the lines where a specific trigger appears.\n\n    Args:\n        trigger (str): string pattern to search for\n        lines (list/None): list of lines\n        filename (str/None): file to read lines from\n\n    Returns:\n        list: indicies of the lines where the trigger string was found and list of lines\n    '
    lines = _get_lines_from_file(filename=filename, lines=lines)
    trigger_indicies = [i for (i, line) in enumerate(lines) if (trigger in line.strip())]
    if return_lines:
        return (trigger_indicies, lines)
    else:
        return trigger_indicies