mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 21:07:40 +02:00
Updated the Markdown manuals
This commit is contained in:
@ -6,10 +6,10 @@ This PowerShell script launches the Web browser with 20 tabs of popular dashboar
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./open-dashboards.ps1 [[-interval] <Int32>] [<CommonParameters>]
|
||||
PS> ./open-dashboards.ps1 [[-timeInterval] <Int32>] [<CommonParameters>]
|
||||
|
||||
-interval <Int32>
|
||||
Specifies the time interval (110ms per default)
|
||||
-timeInterval <Int32>
|
||||
Specifies the time interval between each tab (110ms per default)
|
||||
|
||||
Required? false
|
||||
Position? 1
|
||||
@ -26,7 +26,7 @@ Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./open-dashboards.ps1
|
||||
✅ Launching Web browser with 20 tabs showing: Toggl Track, Google Calendar, Google Mail, ...
|
||||
✅ Launching Web browser with 20 tabs showing Toggl Track•Google Calendar•Google Mail, ...
|
||||
NOTE: Execute './switch-tabs.ps1' to switch from tab to tab automatically.
|
||||
...
|
||||
|
||||
@ -48,11 +48,11 @@ Script Content
|
||||
Open web dashboards
|
||||
.DESCRIPTION
|
||||
This PowerShell script launches the Web browser with 20 tabs of popular dashboard websites.
|
||||
.PARAMETER interval
|
||||
Specifies the time interval (110ms per default)
|
||||
.PARAMETER timeInterval
|
||||
Specifies the time interval between each tab (110ms per default)
|
||||
.EXAMPLE
|
||||
PS> ./open-dashboards.ps1
|
||||
✅ Launching Web browser with 20 tabs showing: Toggl Track, Google Calendar, Google Mail, ...
|
||||
✅ Launching Web browser with 20 tabs showing Toggl Track•Google Calendar•Google Mail, ...
|
||||
NOTE: Execute './switch-tabs.ps1' to switch from tab to tab automatically.
|
||||
...
|
||||
.LINK
|
||||
@ -61,19 +61,19 @@ Script Content
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
#>
|
||||
|
||||
param([int]$interval = 110) # milliseconds
|
||||
param([int]$timeInterval = 110) # milliseconds
|
||||
|
||||
try {
|
||||
Write-Progress "Reading Data/popular-dashboards.csv..."
|
||||
$table = Import-CSV "$PSScriptRoot/../data/popular-dashboards.csv"
|
||||
$numRows = $table.Length
|
||||
Write-Progress -completed "Done."
|
||||
|
||||
Write-Host "✅ Launching Web browser with 20 tabs showing: " -noNewline
|
||||
Write-Host "✅ Launching Web browser with 20 tabs showing " -noNewline
|
||||
$numRows = $table.Length
|
||||
foreach($row in $table) {
|
||||
Write-Host "$($row.NAME), " -noNewline
|
||||
Write-Host "$($row.NAME)•" -noNewline
|
||||
& "$PSScriptRoot/open-default-browser.ps1" "$($row.URL)"
|
||||
Start-Sleep -milliseconds $interval
|
||||
Start-Sleep -milliseconds $timeInterval
|
||||
}
|
||||
Write-Host ""
|
||||
Write-Host "NOTE: Execute './switch-tabs.ps1' to switch from tab to tab automatically."
|
||||
@ -84,4 +84,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of open-dashboards.ps1 as of 03/27/2024 17:36:29)*
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of open-dashboards.ps1 as of 05/19/2024 10:25:23)*
|
||||
|
Reference in New Issue
Block a user