mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-26 19:58:45 +02:00
Improve list-tiobe-index.ps1
This commit is contained in:
parent
591fc1a1f2
commit
0b10d85819
@ -6,7 +6,7 @@
|
|||||||
#>
|
#>
|
||||||
|
|
||||||
function WriteBar { param([string]$Text, [float]$Value, [float]$Max, [float]$Change)
|
function WriteBar { param([string]$Text, [float]$Value, [float]$Max, [float]$Change)
|
||||||
$Num = ($Value * 70.0) / $Max
|
$Num = ($Value * 100.0) / $Max
|
||||||
while ($Num -ge 1.0) {
|
while ($Num -ge 1.0) {
|
||||||
write-host -noNewLine "█"
|
write-host -noNewLine "█"
|
||||||
$Num -= 1.0
|
$Num -= 1.0
|
||||||
@ -36,6 +36,7 @@ function WriteBar { param([string]$Text, [float]$Value, [float]$Max, [float]$Cha
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
& write-big.ps1 "TIOBE INDEX 2021-06"
|
& write-big.ps1 "TIOBE INDEX 2021-06"
|
||||||
|
" Source: https://www.tiobe.com"
|
||||||
""
|
""
|
||||||
|
|
||||||
$Table = import-csv "$PSScriptRoot/../Data/TIOBE-index.csv"
|
$Table = import-csv "$PSScriptRoot/../Data/TIOBE-index.csv"
|
||||||
|
Loading…
Reference in New Issue
Block a user