Beispiel #1
0
def init():
    """Create boilerplate configuration files"""
    from kibitzr.app import Application
    Application.bootstrap()
Beispiel #2
0
def telegram_chat():
    """Return chat id for the last message sent to Telegram Bot"""
    # rename import to escape name clashing:
    from kibitzr.app import Application
    app = Application()
    app.telegram_chat()
Beispiel #3
0
def run(ctx, name):
    """Run kibitzr in the foreground mode"""
    from kibitzr.app import Application
    app = Application()
    sys.exit(app.run(once=False, log_level=ctx.obj['log_level'], names=name))
Beispiel #4
0
def once(ctx, name):
    """Run kibitzr checks once and exit"""
    from kibitzr.app import Application
    app = Application()
    sys.exit(app.run(once=True, log_level=ctx.obj['log_level'], names=name))
Beispiel #5
0
def firefox():
    """Launch Firefox with persistent profile"""
    from kibitzr.app import Application
    Application().run_firefox()
Beispiel #6
0
def reload():
    """Send signal to reload configuration for kibitzr process"""
    from kibitzr.app import Application
    app = Application()
    app.send_reload()
Beispiel #7
0
def app():
    return Application()