git status -b --short
}
+function Get-JournalAgenda() {
+ Get-Content $(Get-JournalFile -date $(Get-Date))
+}
+
+# Nice for git
New-Alias ol Get-GitLog
New-Alias st Get-GitStatus
+
+# Dashboard
+New-Alias dash Get-MyDashboard # See dash.psm1
+New-Alias agenda Get-JournalAgenda
-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() {
+ Measure-JournalTodos
+ chart
+ # todo
+ # Get-JournalAgenda
+ Write-Host "Todo items for today:"
+ Get-JournalTodayTodos
+ Write-Host "GitHub Issues Assigned"
+ Show-GHMine
+ Write-Host "Use command 'todo' to list more tasks."
+ 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
}
+<#
+.SYNPOSIS
+
+Fetch GitHub issues I am working on.
+
+#>
+function Get-GHMine() {
+ $repos = @('SecOps-Tools', 'secdev-job-aids', 'awscli-login')
+ $issueSearchParams = @{ Assignee = 'edthedev'; State = 'open'; OwnerName = 'techservicesillinois' }
+ $issues = @()
+ $repos | ForEach-Object {
+ $issues += Get-GitHubIssue -RepositoryName $_ @issueSearchParams
+ }
+
+ return $issues
+}
+
+<#
+.SYNOPSIS
+
+Show GitHub issues I am working on.
+
+#>
+function Show-GHMine() {
+ Get-GHMine | ForEach-Object {
+ # Markdown output
+ " + [" + $_.Title + " (" + $_.Number + ")](" + $_.html_url + ")"
+ }
+}
+
+
Export-ModuleMember -Function Get-GHClosed
-Export-ModuleMember -Function Show-GHClosed
\ No newline at end of file
+Export-ModuleMember -Function Show-GHClosed
+Export-ModuleMember -Function Get-GHMine
+Export-ModuleMember -Function Show-GHMine
\ No newline at end of file