X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/ff4bd2116c84600a2a5c981d06174eb792ff52a4..4753d129c5d8833ffef107140c755597f3df496f:/psmodules/dash.psm1 diff --git a/psmodules/dash.psm1 b/psmodules/dash.psm1 index 560f729..3bfb4c6 100644 --- a/psmodules/dash.psm1 +++ b/psmodules/dash.psm1 @@ -1,19 +1,18 @@ -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 Get-MyDashBoard() { + Write-Host "## Todo items for today:" + Measure-JournalTodos + chart + Get-JournalTodayTodos + Write-Host "## Agenda for today:" + Get-JournalAgenda + Write-Host "## GitHub Issues Assigned" + Show-GHMine + Write-Host "## GitHub Issues with no milestone. (Show-GHNoMilestone)" + Get-GHNoMilestone | Measure-Object -Property updated_at -Min -Max + 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" -} - -Export-ModuleMember -Function Invoke-MyDashboard \ No newline at end of file +Export-ModuleMember -Function Get-MyDashboard \ No newline at end of file