]> us-delaporte.pagekite.me Git - dotfiles.git/commitdiff
Add Luanti log viewer helper
authorEdward Delaporte <edward@delaporte.us>
Wed, 23 Oct 2024 01:53:59 +0000 (20:53 -0500)
committerEdward Delaporte <edward@delaporte.us>
Wed, 23 Oct 2024 01:55:24 +0000 (20:55 -0500)
invoke/minetest/tasks.py

index e412a6796532a8429e71669c58a38697710332c1..d6e82d06661d7923d4a290aae6a75f629a95f902 100644 (file)
@@ -118,4 +118,9 @@ def rmod(c, name):
     c.run(f"mv {root}/mods_{name} {mod_dir}")
     c.run(f"ls {root}")
 
+@task
+def logs(c, lines=20):
+    '''Output some logs'''
+    c.run(f"tail -n {lines} {root}/debug.txt")
+