bumpversion.commands.replace
The replace CLI subcommand implementation.
logger
python
logger = get_indented_logger(__name__)replace
python
def replace(files: list, config_file: Optional[str], verbose: int, allow_dirty: Optional[bool], current_version: Optional[str], new_version: Optional[str], parse: Optional[str], serialize: Optional[List[str]], search: Optional[str], replace: Optional[str], regex: Optional[bool], no_configured_files: bool, ignore_missing_version: bool, ignore_missing_files: bool, dry_run: bool) -> NoneReplace the version in files.
FILES are additional file(s) to modify. If you want to rewrite only files specified on the command line, use with the --no-configured-files option.