generate_changelog.actions.text_processing.PrefixLines

PrefixLines#

class generate_changelog.actions.text_processing.PrefixLines[source]#

Creates a callable to prefix lines to input text.

prefix: Union[str, Callable[[], str]]#

The characters to put in front of each line.

first_line: Union[str, Callable[[], str], None] = None#

Prefix the first line with these characters.

__call__(input_text)[source]#

Prepend characters to the lines in input text.

Return type:

str

Parameters:

input_text (str | Callable[[], str]) –

__init__(prefix, first_line=None)#
Parameters:
Return type:

None