--- /dev/null
+
+##
+
+Install WTFUtil
+
+ > I have a helper script for Pi.
+ > I think I installed some other way on Ubunut.
+
+Setup WTFUtil. See `dotfiles/setup/dash_wtfutil.sh`
+
+Clone my PowerShell Git Helper libraries
+
+ ```
+ cd $HOME
+ git clone https://github.com/uillinois-community/powershell-scripts
+ ```
+
+Install PowerShell 7 or higher:
+
+ ```
+ winget install --id Microsoft.Powershell --source winget
+ ```
\ No newline at end of file
$env:todolist = "C:\Users\delaport\Journal\"
# Tell my scripts which GitHub repositories to look in.
$env:GITHUB_USERNAME = 'edthedev'
+$env:GITHUB_CLONE_PATH = '~\src'
$env:GITHUB_REPOS = @(
'techservicesillinois/SecOps-Tools',
'techservicesillinois/secdev-job-aids',
'techservicesillinois/awscli-login',
'techservicesillinois/farmit',
- 'uillinois-community/uillinois-community.github.io',
'techservicesillinois/SecOps-Powershell-CSOC',
'techservicesillinois/SecOps-Powershell-CISDSC',
'techservicesillinois/secops-splunk-null-router'
) -join ' '
+# 'uillinois-community/uillinois-community.github.io',
$ENV:TS_REPOS = $ENV:GITHUB_REPOS.split(' ') | Where { $_ -like 'techser*' }
$env:todocount += $todocount.lines
}
+<#
+
+.SYNOPSIS
+
+Show a text dashboard.
+
+.EXAMPLE
+
+Include `Todo` list.
+Show-MyDashboard -todo
+
+#>
function Show-MyDashBoard() {
param(
- [bool]$gitHub=$true
+ # [switch]$todocount=$true,
+ [switch]$agenda=$true,
+ [switch]$blocked,
+ [switch]$bugs,
+ [switch]$gitHub,
+ [switch]$help,
+ [switch]$leeroy,
+ [switch]$orphans,
+ [switch]$pr,
+ [switch]$requested,
+ [switch]$todo
)
- Write-Host ""
- Measure-JournalTodos
- Write-Host "## Todo items for today: $env:todocount"
- chart -var todocount
- Write-Host ""
- Write-Host "## Agenda for today:"
- Get-JournalAgenda
- Write-Host ""
+ $todocount = $true
+ if($todocount){
+ Measure-JournalTodos
+ Write-Host ""
+ Write-Host "## Todo items for today: $env:todocount"
+ chart -var todocount
+ }
+ if($agenda){
+ Write-Host ""
+ Write-Host "## Agenda for today:"
+ Get-JournalAgenda
+ }
+ if($blocked){
+ Write-Host ""
+ Write-Host "## Blocked & Blocker Issues:"
+ Invoke-AgileCmd "gh issue list -S 'label:blocked,blocker'"
+ }
+ if($bugs) {
+ Write-Host ""
+ Write-Host "## Known Bugs"
+ Invoke-AgileCmd "gh issue list -S 'label:bug'"
+ }
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 'todolist' to list more tasks."
- Write-Host "Use command 'chart -var todocount' to show todo item progress."
- Write-Host "Use command 'agenda' to list the plan for today."
+ Write-Host ""
+ Write-Host "## GitHub Status (gh status)"
+ Invoke-Expression "gh status"
+ }
+ if($help) {
+ Write-Host "## Dasbhoard Help"
+ Get-Help Show-MyDashboard
+ }
+ if($leeroy){
+ Write-Host ""
+ Write-Host "## Leeroy Jenkins!:"
+ Invoke-AgileCmd "gh issue list -l 'leeroy jenkins'"
+ }
+ if($orphans) {
+ Write-Host ""
+ Write-Host "## Issues with No Milestone"
+ Invoke-AgileCmd "gh issue list -S 'is:open is:issue no:milestone'"
+ }
+ if($pr) {
+ Write-Host ""
+ Write-Host "## Open Pull Requests"
+ Invoke-AgileCmd "gh pr list"
+ }
+ if($requested){
+ Write-Host ""
+ Write-Host "## Open Stakeholder Requests"
+ invoke-agilecmd "gh issue list -S 'label:requested'"
+ }
+ if($todo) {
+ Write-Host ""
+ Write-Host "## Todo List"
+ todolist
+ }
}
function Show-MyTeamWork() {