From: Edward Delaporte Date: Sun, 7 Dec 2025 16:48:46 +0000 (-0600) Subject: Add serve command X-Git-Url: https://apps.delaporte.us/gitweb/dotfiles.git/commitdiff_plain/e23eb6406ed942ce975439056a19b44179820594 Add serve command --- diff --git a/invoke/luanti-remote/tasks.py b/invoke/luanti-remote/tasks.py index e69de29..d62171d 100644 --- a/invoke/luanti-remote/tasks.py +++ b/invoke/luanti-remote/tasks.py @@ -0,0 +1,21 @@ +from invoke import task +import os + +IP=os.environ.get('LUANTI_IP') +USER=os.environ.get('LUANTI_USER') +HOME=os.environ.get('LUANTI_HOME') + +SERVE=f'{HOME}/luanti/bin/luantiserver --gameid minetest --worldname world' + +def browse(c, url): + c.run(f"librefox {url}") + +@task +def serve(c): + print(f"Attempting to connect to {IP}") + c.run(f'ssh {USER}@{IP} -C {SERVE}') + +@task +def cli_hint(c): + browse(c, 'https://console.kamatera.com/cli') +