From: Edward Delaporte Date: Wed, 26 Nov 2025 18:49:38 +0000 (-0600) Subject: Sync X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/commitdiff_plain/9351611814176368a0f45f359335083c61b6a507?ds=sidebyside Sync --- diff --git a/files/pc/tasks.py b/files/pc/tasks.py index 91f7503..3ea73a2 100644 --- a/files/pc/tasks.py +++ b/files/pc/tasks.py @@ -1,10 +1,25 @@ + + # This file is meant to sit in ~ for use from all shells. from invoke import task -import datetime +from datetime import datetime as dt import os HOME = os.path.expanduser('~') +TODAY = dt.now().strftime('%Y.%m.%d') + +def browse(c, url): + c.run(f"firefox {url}") + + +def code(c, path): + c.run(f"codium {path}") + + +def folder(c, path): + c.run(f"nemo {path}") + @task def debug(c): @@ -14,11 +29,15 @@ def debug(c): PAYROLL = f"{HOME}/Nanny.Payroll" @task +def folder_payroll(c): + code(c, f"{HOME}/Nanny.Payroll") + +@task(folder_payroll) def payroll(c): # For copying the latest file in - c.run(f"files {HOME}/pixel7adocuments") - c.run(f"files {HOME}/Nanny.Payroll/data/payroll_inbox") + folder(c, f"{HOME}/pixel7adocuments") + folder(c, f"{HOME}/Nanny.Payroll/data/payroll_inbox") # For running the payroll scripts c.run(f"cd {PAYROLL};{HOME}/envs/jupyter/bin/jupyter lab") diff --git a/files/ts/tasks.py b/files/ts/tasks.py index 5e50693..d6a6fdc 100644 --- a/files/ts/tasks.py +++ b/files/ts/tasks.py @@ -16,6 +16,11 @@ def code(c, path): c.run(f"codium {path}") +def folder(c, path): + c.run(f"nemo {path}") + + + @task def debug(c): result = c.run('which minetest')