How to use the dotbot.messenger.Messenger function in dotbot

To help you get started, we’ve selected a few dotbot examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github anishathalye / dotbot / dotbot / cli.py View on Github external
def main():
    log = Messenger()
    try:
        parser = ArgumentParser()
        add_options(parser)
        options = parser.parse_args()
        if options.version:
            print('Dotbot version %s (yaml: %s)' % (dotbot.__version__, yaml.__version__))
            exit(0)
        if options.super_quiet:
            log.set_level(Level.WARNING)
        if options.quiet:
            log.set_level(Level.INFO)
        if options.verbose:
            log.set_level(Level.DEBUG)
        if options.no_color:
            log.use_color(False)
        plugin_directories = list(options.plugin_dirs)
github anishathalye / dotbot / dotbot / dispatcher.py View on Github external
def __init__(self, base_directory):
        self._log = Messenger()
        self._setup_context(base_directory)
        self._load_plugins()
github anishathalye / dotbot / dotbot / plugin.py View on Github external
def __init__(self, context):
        self._context = context
        self._log = Messenger()