X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/ddaa94c2070b89a5d06a838068883364e4b28e4a..482d53ca1ff192d34b62c5e3d349e400228effe8:/files/ts/tasks.py diff --git a/files/ts/tasks.py b/files/ts/tasks.py index e3c7756..6e47ddb 100644 --- a/files/ts/tasks.py +++ b/files/ts/tasks.py @@ -15,7 +15,8 @@ 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') # Helper functions for a consistent experience @@ -29,7 +30,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 +79,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 +154,7 @@ def bookmarks(c): code(c, f'{JOURNAL}/bookmarks.md') +@task +def message_templates(c): + browse(c, MESSAGE_TEMPLATES)