]> us-delaporte.pagekite.me Git - dotfiles.git/commitdiff
Merge branch 'main' of github.com:edthedev/dotfiles into main
authorEdTheDev <edward@delaporte.us>
Sat, 6 Jan 2024 16:57:49 +0000 (10:57 -0600)
committerEdTheDev <edward@delaporte.us>
Sat, 6 Jan 2024 16:57:49 +0000 (10:57 -0600)
doc/dashboard.md [new file with mode: 0644]
doc/openshift-cli.md
files/Microsoft.PowerShell_profile.ps1
files/env.ps1
psmodules/dash.psm1

diff --git a/doc/dashboard.md b/doc/dashboard.md
new file mode 100644 (file)
index 0000000..ce07c45
--- /dev/null
@@ -0,0 +1,22 @@
+
+## 
+
+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
index 29a81966ae17daaffbb4b190a2d3e14339180cef..19f03d726890bceb3c9d3fa706131fb981ecf078 100644 (file)
@@ -21,7 +21,7 @@
 
        `go install github.com/kubernetes/kompose@latest`
 
-## Deployment
+## Convert from Docker to K8S
 
 1. Create a Docker compose file
 
        `kompose convert`
        ```
 
-3. Deploy
+## Deploy
+
+1. Create an switch to a project
+
+       ```powershell
+       oc new-project bookshelf
+       ```
+
+2. Deploy resources
  
        ```powershell
        oc apply -f calibre-web-service.yaml
index 14b1dc9b9a00231dd0effdce480f488e314f4309..2bbdf46ab59197ffcb94666b011fcf7852e20aa6 100644 (file)
@@ -37,7 +37,7 @@ Import-Module "$env:psmodules\fix_vpn.psm1"
 Import-Module $env:psmodules\house_shopping.psm1
 
 # Load local source modules
-# Import-Module $env:src\powershell-scripts\modules\AgileGitHub.psm1
+Import-Module $env:src\powershell-scripts\modules\AgileGitHubCLI.psm1
 # Import-Module $env:src\powershell-scripts\modules\MarkdownGitHub.psm1
 
 # Let's face it, I'm about to cd into my source directory
index d27bd8ca69c4bc02e29f6388709cc645f72b996f..54b969afe88d90603ff8a693fee17ba419335b84 100644 (file)
@@ -2,15 +2,16 @@ $env:Journal = "~\Journal" # allows cd $env:journal
 $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*' }
 
index 7e25e70be380fc749dc5a05627b039d33cf898f6..b300366eb25c12832bde3b16795be44eaa2021ae 100644 (file)
@@ -8,33 +8,88 @@ function Measure-JournalTodos() {
        $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() {