-function Show-MyTeamWork() {
- $team = @('ddriddle', 'zcarrington', 'tzturner', 'mpitcel', 'edthedev')
- $team | ForEach-Object {
- "## $_ - Issues Assigned"
- Get-AgileQuery -Assignee $_ | Invoke-AgileQuery | Show-MarkdownFromGitHub
+Export-ModuleMember -Function Show-GitRevList
+
+
+
+<#
+
+.SYNOPSIS
+
+Show a text dashboard.
+
+.EXAMPLE
+
+Include `Todo` list.
+Show-MyDashboard -todo
+
+#>
+function Show-MyDashBoard() {
+ param(
+ # [switch]$todocount=$true,
+ # [switch]$agenda,
+ [switch]$blocked,
+ [switch]$bugs,
+ [switch]$gitHub,
+ [switch]$help,
+ [switch]$leeroy,
+ [switch]$orphans,
+ [switch]$pr,
+ [switch]$requested,
+ [switch]$todo
+ )
+ $todocount = $true
+ if($todocount){
+ Measure-JournalTodos
+ Write-Host ""
+ Write-Host "## Todo items for today: $env:todocount"
+ chart -var todocount
+ }
+ $agenda = $true
+ if($agenda){
+ Write-Host ""
+ Write-Host "## Agenda for today:"
+ Get-JournalAgenda
+ }
+ if($blocked){
+ Write-Host ""
+ Write-Host "## Blocked & Blocker Issues:"
+ $blockerQuery = "label:blocker,blight,bug,blocked"
+ Invoke-AgileCmd "gh issue list -S '$blockerQuery'"
+ Write-Host ""
+ Write-Host "## Open Questions"
+ $questionQuery = 'label:"phone a friend",question,"needs context"'
+ Invoke-AgileCmd "gh issue list -S '$questionQuery'"
+
+ }
+ if($bugs) {
+ Write-Host ""
+ Write-Host "## Known Bugs"
+ Invoke-AgileCmd "gh issue list -S 'label:bug'"
+ }
+ if($github) {
+ Write-Host ""
+ Write-Host "## GitHub Status (gh status)"
+ Invoke-Expression "gh status"
+ }
+ if($help) {
+ Write-Host "## Dasbhoard Help"
+ Get-Help Show-MyDashboard