]> us-delaporte.pagekite.me Git - dotfiles.git/blobdiff - files/ts/tasks.py
Syntax on
[dotfiles.git] / files / ts / tasks.py
index e3c7756e358a6fda16e17f6529b70c37d080a654..42ede748e75e518920999710232e4ddeea3634e7 100644 (file)
@@ -15,7 +15,9 @@ JOURNAL = f"{HOME}/Journal/{YEAR}"
 
 SECDEV_LIMITED=os.environ.get('SECDEV_LIMITED')
 SECDEV_MESSAGE_TEMPLATES=os.environ.get('SECDEV_MESSAGE_TEMPLATES')
-BOX_EPICS=os.environ.get('BOX_EPICS')
+EPICS=os.environ.get('URL_EPICS')
+MESSAGE_TEMPLATES=os.environ.get('URL_MESSAGE_TEMPLATES')
+OLLAMA=os.environ.get('OLLAMA')
 
 # Helper functions for a consistent experience
 
@@ -29,7 +31,7 @@ def browse(c, url):
 
 
 def code(c, path):
-    c.run(f"codium {path}")
+    c.run(f"codium {path}", asynchronous=True)
 
 
 def folder(c, path):
@@ -78,10 +80,11 @@ def in_progress(c):
     browse(c, 'https://github.com/orgs/techservicesillinois/projects/10/views/11')
 
 
-@task(daily, in_progress, dash)
+@task(daily, in_progress)
 def status(c):
     '''Check on status of priorities'''
-    browse(c, BOX_EPICS)
+    browse(c, EPICS)
+    dash(c)
     pass
 
 
@@ -152,4 +155,12 @@ def bookmarks(c):
     code(c, f'{JOURNAL}/bookmarks.md')
 
 
+@task
+def message_templates(c):
+    browse(c, MESSAGE_TEMPLATES)
+
+@task
+def ollama(c):
+    print(f'ssh -t {OLLAMA} "ollama run glm-4.7-flash"')
+