generate_changelog.actions.file_processing.WriteFile

WriteFile#

class generate_changelog.actions.file_processing.WriteFile[source]#

Write the passed string to a file when called.

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

The file name to write when called.

__call__(input_text)[source]#

Writes input_text to the pre-configured file.

Return type:

Union[str, Callable[[], str]]

Parameters:

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

__init__(filename)#
Parameters:

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

Return type:

None