generate_changelog.actions.file_processing.ReadFile

ReadFile#

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

Return a file’s contents when called.

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

The file name to read when called.

create_if_missing: bool = True#

When True, create a missing file. Otherwise returns an error.

__call__(*args, **kwargs)[source]#

Return the contents of the file.

Return type:

str

__init__(filename, create_if_missing=True)#
Parameters:
Return type:

None