]> us-delaporte.pagekite.me Git - dotfiles.git/commitdiff
Add Go function for quick ENV bookmarks
authorEdward Delaporte <edward@delaporte.us>
Fri, 6 Mar 2026 03:56:11 +0000 (21:56 -0600)
committerEdward Delaporte <edward@delaporte.us>
Fri, 6 Mar 2026 03:56:11 +0000 (21:56 -0600)
files/pc/tasks.py

index 4c0cdb483465c4c9b58dae2beaf6f171a20f0dbd..79fe3fa24c0368f50a2ff96a2f52166710f84e19 100644 (file)
@@ -13,6 +13,9 @@ CU_URL = os.environ.get('CU_URL')
 SCHOOL = f"{HOME}/School"
 PAYROLL = f"{HOME}/Nanny.Payroll"
 
+
+
+
 def browse(c, url):
     c.run(f"librefox {url}", asynchronous=True)
 
@@ -24,6 +27,15 @@ def code(c, path):
 def folder(c, path):
     c.run(f"nemo {path}")
 
+@task
+def go(c, bookmark):
+    var = f'URL_{bookmark.upper()}'
+    url = os.environ.get(var)
+    browse(c, url)
+
+@task
+def cloud_panel(c):
+    go(c, 'cloud')
 
 @task
 def debug(c):