From e23eb6406ed942ce975439056a19b44179820594 Mon Sep 17 00:00:00 2001 From: Edward Delaporte Date: Sun, 7 Dec 2025 10:48:46 -0600 Subject: [PATCH] Add serve command --- invoke/luanti-remote/tasks.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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') + -- 2.47.3