bumpversion.ui
Utilities for user interface.
logger
python
logger = logging.getLogger('bumpversion')VERBOSITY
python
VERBOSITY = {0: (logging.WARNING, '%(message)s'), 1: (logging.INFO, '%(message)s'), 2: (logging.DEBUG, '%(message)s'), 3: (logging.DEBUG, '%(message)s %(pathname)s:%(lineno)d')}get_indented_logger
python
def get_indented_logger(name: str) -> IndentedLoggerAdapterGet a logger with indentation.
setup_logging
python
def setup_logging(verbose: int = 0) -> NoneConfigure the logging.
print_info
python
def print_info(msg: str) -> NoneEcho a message to the console.
print_error
python
def print_error(msg: str) -> NoneRaise an error and exit.
print_warning
python
def print_warning(msg: str) -> NoneEcho a warning to the console.