]> us-delaporte.pagekite.me Git - dotfiles.git/blobdiff - psmodules/dash.psm1
Colors!
[dotfiles.git] / psmodules / dash.psm1
index caccf724c45c2438ba892eba6f3888c4622298a0..043a4098d70157f43be57b1017ea60ac519d535f 100644 (file)
@@ -1,20 +1,38 @@
 
-function Get-MyDashboard() {
-  $MyDashboard = New-UDDashboard -Title "Hello, World" -Content {
-    New-UDCard -Title "Hello, Universal Dashboard" -Content {
-      New-UDParagraph -Text 'I am a very simple card. I am good at containing small bits of information. I am convenient because I require little markup to use effectively.'
-    } -Links @(
-      New-UDLink -Text 'This is a link' -Url '#!'
-      New-UDLink -Text 'This is a link' -Url '#!'
-      ) -Size 'small'
-    }
-  }
-  return $MyDashboard
+function Show-MyDashBoard() {
+       Write-Host ""
+       Write-Host "## Todo items for today:"
+       Measure-JournalTodos
+       chart
+       Get-JournalTodayTodos
+       Write-Host ""
+       Write-Host "## Agenda for today:"
+       Get-JournalAgenda
+       Write-Host ""
+       Write-Host "## GitHub Issues Assigned (Show-AgileMine)"
+       # Show-AgileMine
+       Show-AgileMine -DaysAgo 6
+       Write-Host ""
+       Write-Host "## GitHub Issues with no milestone. (Select-AgileNoMilestone)"
+       Write-Host "(Get-AgileQuery -state 'Open' | Invoke-AgileQuery | Select-AgileNoMilestone | Show-MarkdownFromGitHub)"
+       $milestone_repos = $env:github_repos.split(' ') | Where-Object { $_ -Match 'techservicesillinois' }
+    $queries = Get-AgileQuery -state 'Open' -repos $milestone_repos
+       Invoke-AgileQuery -queries $queries | Select-AgileNoMilestone | Show-MarkdownFromGitHub
+    # $orphans_count = ($orphans | Measure-Object -Property updated_at -Min -Max).Count
+       # $orphans | Measure-Object -Property updated_at -Min -Max
+       Write-Host ""
+       Write-Host "Use command 'todo' to list more tasks."
+       Write-Host "Use command 'chart' to show todo item progress."
+       Write-Host "Use command 'agenda' to list the plan for today."
 }
 
-function Inovke-MyDashboard() {
-  Start-UDDashboard -Port 1000 -Dashboard Get-MyDashboard
-  Write-Host "http://localhost:1000"
+function Show-MyTeamWork() {
+       $team = @('ddriddle', 'zcarrington', 'tzturner', 'mpitcel', 'edthedev')
+       $team | ForEach-Object {
+               "## $_ - Issues Assigned"
+               Get-AgileQuery -Assignee $_ | Invoke-AgileQuery | Show-MarkdownFromGitHub
+       }
 }
 
-Export-ModuleMember -Function Invoke-MyDashboard
\ No newline at end of file
+Export-ModuleMember -Function Show-MyDashboard
+Export-ModuleMember -Function Show-MyTeamWork
\ No newline at end of file