コード例 #1
0
def wand(delay=0):
    def on_finish(automagica_id):
        print(f"Automagica ID: {automagica_id}")
        os._exit(0)

    app = WandApp(delay=delay, on_finish=on_finish)
    app.run()
コード例 #2
0
ファイル: cli.py プロジェクト: microrepar/automagica
def wand(delay=0):
    """
    `automagica wand` launches the Automagica Wand
    """
    def on_finish(automagica_id):
        """
        Callback function when Automagica Wand is closed
        """
        print(f"Automagica ID: {automagica_id}")
        os._exit(0)

    app = WandApp(delay=delay, on_finish=on_finish)
    app.run()