Add open-toggl-track.ps1

This commit is contained in:
Markus Fleschutz 2021-10-25 07:22:12 +02:00
parent dcb11e4c6e
commit 5e2bc0c609
5 changed files with 59 additions and 2 deletions

View File

@ -179,6 +179,7 @@ open-repos-folder.ps1, Opens the user's Git repositories folder
open-snipping-tools.ps1, Opens the Snipping Tool
open-spotify.ps1, Opens the Spotify app
open-task-manager.ps1, Starts the Task Manager
open-toggl-track.ps1, Opens Toggl Track
open-videos-folder.ps1, Opens the user's videos folder
pick-commit.ps1, Cherry-picks a Git commit into multiple branches
play-beep.ps1, Plays a beep sound

Can't render this file because it has a wrong number of fields in line 94.

View File

@ -4,7 +4,7 @@ This script exports all PowerShell scripts to Serenade to execute them by voice.
## Parameters
```powershell
export-to-serenade.ps1 [[-WakeWord] <String>] [[-FilePattern] <String>] [[-TargetFile] <String>] [<CommonParameters>]
export-to-serenade.ps1 [[-WakeWord] <String>] [[-FilePattern] <String>] [[-Application] <String>] [[-TargetFile] <String>] [<CommonParameters>]
-WakeWord <String>
Specifies the wakeword (none by default)
@ -24,11 +24,20 @@ export-to-serenade.ps1 [[-WakeWord] <String>] [[-FilePattern] <String>] [[-Targe
Accept pipeline input? false
Accept wildcard characters? false
-Application <String>
Specifies the application to be used
Required? false
Position? 3
Default value terminal
Accept pipeline input? false
Accept wildcard characters? false
-TargetFile <String>
Specifies the target file ("$HOME/.serenade/scripts/PowerShell.js" by default)
Required? false
Position? 3
Position? 4
Default value "$HOME/.serenade/scripts/PowerShell.js"
Accept pipeline input? false
Accept wildcard characters? false

26
Docs/open-toggl-track.md Normal file
View File

@ -0,0 +1,26 @@
## open-toggl-track.ps1 - Opens Toggl Track
This script starts the Web browser and opens Toggl Track
## Parameters
```powershell
open-toggl-track.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
```
## Example
```powershell
PS> ./open-toggl-track
```
## Notes
Author: Markus Fleschutz · License: CC0
## Related Links
https://github.com/fleschutz/PowerShell
*Generated by convert-ps2md.ps1 using the comment-based help of open-toggl-track.ps1*

View File

@ -135,6 +135,7 @@ Mega Collection of PowerShell Scripts
| [open-snipping-tool.ps1](Scripts/open-snipping-tool.ps1)| Starts the Snipping Tool | [Help](Docs/open-snipping-tool.md) |
| [open-spotify.ps1](Scripts/open-spotify.ps1) | Opens Spotify | [Help](Docs/open-spotify.md) |
| [open-task-manager.ps1](Scripts/open-task-manager.ps1)| Starts the Task Manager | [Help](Docs/open-task-manager.md) |
| [open-toggl-track.ps1](Scripts/open-toggl-track.ps1)| Opens Toggl Track | [Help](Docs/open-toggl-track.md) |
| [open-videos-folder.ps1](Scripts/open-videos-folder.ps1)| Opens the user's videos folder | [Help](Docs/open-videos-folder.md) |
| [remind-me.ps1](Scripts/remind-me.ps1) | Creates a scheduled task that will display a popup message | [Help](Docs/remind-me.md) |
| [save-screenshot.ps1](Scripts/save-screenshot.ps1) | Saves a single screenshot | [Help](Docs/save-screenshot.md) |

20
Scripts/open-toggl-track.ps1 Executable file
View File

@ -0,0 +1,20 @@
<#
.SYNOPSIS
Opens Toggl Track
.DESCRIPTION
This script starts the Web browser and opens Toggl Track
.EXAMPLE
PS> ./open-toggl-track
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
try {
& "$PSScriptRoot/open-browser.ps1" "https://track.toggl.com"
exit 0 # success
} catch {
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
exit 1
}