-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() {
+ param(
+ [bool]$gitHub=$false
+ )
+ Write-Host ""
+ Write-Host "## Todo items for today:"
+ # Measure-JournalTodos
+ chart
+ # Get-JournalTodayTodos
+ Write-Host ""
+ Write-Host "## Agenda for today:"
+ Get-JournalAgenda
+ Write-Host ""
+ if($github) {
+ 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
+ }
+ 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."