From: Edward Delaporte Date: Tue, 23 Dec 2025 04:54:41 +0000 (-0600) Subject: Add invoke to edit local mod X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/commitdiff_plain/264e54441f6af3293af7cd9054475bbec56cb33f Add invoke to edit local mod --- diff --git a/invoke/luanti-remote/tasks.py b/invoke/luanti-remote/tasks.py index cc305f3..61dc1a0 100644 --- a/invoke/luanti-remote/tasks.py +++ b/invoke/luanti-remote/tasks.py @@ -27,6 +27,9 @@ SERVE=f'screen -d -m {LUANTI}/bin/luantiserver --gameid minetest --worldname wor def browse(c, url): c.run(f"librewolf {url}") +def codium(c, path): + c.run(f'codium {path}') + @task def list_mods(c): c.run(f'{SSH} -C ls {MODS}') @@ -57,6 +60,11 @@ def unpack_mod(c, mod): c.run(f'cd {unpack}; tar xf {unpack}/{mod}.tar') c.run(f'ls {unpack}') +@task +def edit_mod(c, mod): + unpack = f'{LOCAL_BACKUPS}/mods/unpack' + codium(c, f'{unpack}/{mod}') + updated_mods = f'{LOCAL_BACKUPS}/updated_mods' @task