mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-15 23:28:07 +02:00
Updated the manuals
This commit is contained in:
@ -6,14 +6,14 @@ This PowerShell script launches the Web browser with 20 tabs of popular dashboar
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./open-dashboards.ps1 [[-timeInterval] <Int32>] [<CommonParameters>]
|
||||
/home/markus/Repos/PowerShell/scripts/open-dashboards.ps1 [[-timeInterval] <Int32>] [<CommonParameters>]
|
||||
|
||||
-timeInterval <Int32>
|
||||
Specifies the time interval between each tab (110ms per default)
|
||||
|
||||
Required? false
|
||||
Position? 1
|
||||
Default value 110
|
||||
Default value 120
|
||||
Accept pipeline input? false
|
||||
Accept wildcard characters? false
|
||||
|
||||
@ -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: Toggl Track•Google Calendar•Google Mail, ...
|
||||
NOTE: Execute './switch-tabs.ps1' to switch from tab to tab automatically.
|
||||
...
|
||||
|
||||
@ -45,14 +45,14 @@ Script Content
|
||||
```powershell
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Open web dashboards
|
||||
Open 20 web dashboards
|
||||
.DESCRIPTION
|
||||
This PowerShell script launches the Web browser with 20 tabs of popular dashboard websites.
|
||||
.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: Toggl Track•Google Calendar•Google Mail, ...
|
||||
NOTE: Execute './switch-tabs.ps1' to switch from tab to tab automatically.
|
||||
...
|
||||
.LINK
|
||||
@ -61,15 +61,14 @@ Script Content
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
#>
|
||||
|
||||
param([int]$timeInterval = 110) # milliseconds
|
||||
param([int]$timeInterval = 120) # milliseconds
|
||||
|
||||
try {
|
||||
Write-Progress "Reading Data/popular-dashboards.csv..."
|
||||
$table = Import-CSV "$PSScriptRoot/../data/popular-dashboards.csv"
|
||||
Write-Progress -completed "Done."
|
||||
|
||||
Write-Host "✅ Launching Web browser with 20 tabs showing " -noNewline
|
||||
$numRows = $table.Length
|
||||
Write-Host "✅ Launching Web browser with 20 tabs: " -noNewline
|
||||
foreach($row in $table) {
|
||||
Write-Host "$($row.NAME)•" -noNewline
|
||||
& "$PSScriptRoot/open-default-browser.ps1" "$($row.URL)"
|
||||
@ -84,4 +83,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of open-dashboards.ps1 as of 08/15/2024 09:50:51)*
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of open-dashboards.ps1 as of 11/08/2024 12:34:52)*
|
||||
|
Reference in New Issue
Block a user