]>
us-delaporte.pagekite.me Git - dotfiles.git/blob - files/ts/tasks.py
1 # This file is meant to sit in ~ for use from all shells.
2 # ln -s ~/dotfiles/files/ts/tasks.py ~/tasks.py
4 from invoke
import task
6 from datetime
import datetime
as dt
9 HOME
= os
.path
.expanduser('~')
11 TODAY
= dt
.now().strftime('%Y.%m.%d')
12 MONTH
= dt
.now().strftime('%m')
13 YEAR
= dt
.now().strftime('%Y')
14 JOURNAL
= f
"{HOME}/Journal/{YEAR}"
16 SECDEV_LIMITED
=os
.environ
.get('SECDEV_LIMITED')
19 # Helper functions for a consistent experience
23 code(c
, f
'{HOME}/Journal')
27 c
.run(f
"firefox {url}")
31 c
.run(f
"codium {path}")
41 result
= c
.run('which minetest')
48 c
.run(f
"firefox https://my.techservices.illinois.edu/vacation/submitdays.asp")
49 browse(c
, "https://outlook.office.com/calendar/view/week")
54 '''Reconcile time off between reporting systems'''
55 browse(c
, "https://outlook.office.com/calendar/view/month")
56 code(c
, f
"{HOME}/src/Learn_RobotFramework_IllinoisPTR")
60 '''Open daily reminders file for this month'''
61 code(c
, f
'{JOURNAL}/{MONTH}-daily.md')
66 '''Check on status of priorities'''
68 browse(c
, 'https://github.com/orgs/techservicesillinois/projects/10/views/11')
73 '''Prep for backlog grooming'''
74 browse(c
, 'https://github.com/orgs/techservicesillinois/projects/10/views/7')
79 '''Prep for team retrospective meeting'''
81 # Create and open retro notes file
82 retro_file
= f
'{JOURNAL}/{TODAY}.Retro.md'
83 if(not os
.path
.exists(retro_file
)):
84 c
.run(f
'{HOME}/envs/jinja/bin/jinja2 -D DATE={TODAY} {JOURNAL}/Retro.Template.md > {retro_file}')
87 # Close issues this sprint
88 browse(c
, 'https://github.com/orgs/techservicesillinois/projects/10/views/5')
90 # Shared folder for archiving Retro notes
91 browse(c
, f
'{SECDEV_LIMITED}')
97 '''For recording team wins'''
98 code(c
, f
'{JOURNAL}/{YEAR}-Wins.md')