]> us-delaporte.pagekite.me Git - dotfiles.git/blobdiff - files/pc/tasks.py
Add invoke file for common tasks
[dotfiles.git] / files / pc / tasks.py
index ed127765b4ce5d3c8b87f3986d9f81889a7a3b82..91f75036138b49ea6317495e6978fe5b3182f623 100644 (file)
@@ -1,3 +1,4 @@
+# This file is meant to sit in ~ for use from all shells.
 from invoke import task
 
 import datetime
@@ -14,5 +15,11 @@ PAYROLL = f"{HOME}/Nanny.Payroll"
 
 @task
 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")
+
+    # For running the payroll scripts
     c.run(f"cd {PAYROLL};{HOME}/envs/jupyter/bin/jupyter lab")
-    print('Payroll')
+