8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert this code into a usable function:
function Show-ConsoleListPreview { $Colors = $PowerTabConfig.ConsoleList.Colors Write-Host " " -NoNewLine Write-Host "┌─" -ForegroundColor $Colors.BorderColor -BackgroundColor $Colors.BorderBackColor -NoNewLine Write-Host " I" -ForegroundColor $Colors.BorderTextColor -BackgroundColor $Colors.BorderBackColor -NoNewLine Write-Host "tem " -ForegroundColor $Colors.FilterColor -BackgroundColor $Colors.BorderBackColor -NoNewLine Write-Host "───────────┐" -ForegroundColor $Colors.BorderColor -BackgroundColor $Colors.BorderBackColor Write-Host " " -NoNewLine Write-Host "│" -ForegroundColor $Colors.BorderColor -BackgroundColor $Colors.BorderBackColor -NoNewLine Write-Host "Item " -ForegroundColor $Colors.TextColor -BackgroundColor $Colors.BackColor -NoNewLine Write-Host "│" -ForegroundColor $Colors.BorderColor -BackgroundColor $Colors.BorderBackColor Write-Host " " -NoNewLine Write-Host "│" -ForegroundColor $Colors.BorderColor -BackgroundColor $Colors.BorderBackColor -NoNewLine Write-Host "Item Selected " -ForegroundColor $Colors.SelectedTextColor -BackgroundColor $Colors.SelectedBackColor -NoNewLine Write-Host "│" -ForegroundColor $Colors.BorderColor -BackgroundColor $Colors.BorderBackColor Write-Host " " -NoNewLine Write-Host "│" -ForegroundColor $Colors.BorderColor -BackgroundColor $Colors.BorderBackColor -NoNewLine Write-Host "Item " -ForegroundColor $Colors.TextColor -BackgroundColor $Colors.BackColor -NoNewLine Write-Host "│" -ForegroundColor $Colors.BorderColor -BackgroundColor $Colors.BorderBackColor Write-Host " " -NoNewLine Write-Host "│" -ForegroundColor $Colors.BorderColor -BackgroundColor $Colors.BorderBackColor -NoNewLine Write-Host "Item " -ForegroundColor $Colors.TextColor -BackgroundColor $Colors.BackColor -NoNewLine Write-Host "│" -ForegroundColor $Colors.BorderColor -BackgroundColor $Colors.BorderBackColor Write-Host " " -NoNewLine Write-Host "└─" -ForegroundColor $Colors.BorderColor -BackgroundColor $Colors.BorderBackColor -NoNewLine Write-Host "[1] 1-4 [4]" -ForegroundColor $Colors.BorderTextColor -BackgroundColor $Colors.BorderBackColor -NoNewLine Write-Host "──────┘" -ForegroundColor $Colors.BorderColor -BackgroundColor $Colors.BorderBackColor } $themes = (dir .\Documents\WindowsPowerShell\Modules\PowerTab\ColorThemes\*.csv | select -ExpandProperty Name) -replace '.csv','' $themes = $themes -replace 'Theme','' $themes | ForEach-Object { Import-TabExpansionTheme $_ Write-Host "Testing Theme $_" Write-Host "" Show-ConsoleListPreview Write-Host "" Write-Host "" }
The text was updated successfully, but these errors were encountered:
jasonmarcher
No branches or pull requests
Convert this code into a usable function:
The text was updated successfully, but these errors were encountered: