1 function Get-JournalAgenda() {
2 agenda.exe -path "$HOME/Journal/{YYYY}/{MM}-{DD}.md"
5 function Measure-JournalTodos() {
6 $todocount = todolist | Measure-Object -Line
8 $env:todocount += $todocount.lines
15 Show a text dashboard.
20 Show-MyDashboard -todo
23 function Show-MyDashBoard() {
25 # [switch]$todocount=$true,
26 [switch]$agenda=$true,
27 [switch]$gitHub=$false,
32 [switch]$requested=$false,
33 [switch]$orphans=$false
39 Write-Host "## Todo items for today: $env:todocount"
44 Write-Host "## Agenda for today:"
49 Write-Host "## GitHub Status (gh status)"
50 Invoke-Expression "gh status"
54 Write-Host "## Known Bugs"
55 Invoke-AgileCmd "gh issue list -S 'label:bug'"
59 Write-Host "## Todo List"
64 Write-Host "## Open Stakeholder Requests"
65 invoke-agilecmd "gh issue list -S 'label:requested'"
69 Write-Host "## Open Pull Requests"
70 Invoke-AgileCmd "gh pr list"
74 Write-Host "## Issues with No Milestone"
75 Invoke-AgileCmd "gh issue list -S 'is:open is:issue no:milestone'"
78 Write-Host "## Dasbhoard Help"
79 Get-Help Show-MyDashboard
83 function Show-MyTeamWork() {
84 $team = @('ddriddle', 'zcarrington', 'tzturner', 'mpitcel', 'edthedev')
85 $team | ForEach-Object {
86 "## $_ - Issues Assigned"
87 Get-AgileQuery -Assignee $_ | Invoke-AgileQuery | Show-MarkdownFromGitHub
91 Export-ModuleMember -Function Show-MyDashboard
92 Export-ModuleMember -Function Show-MyTeamWork