Skip to content

Commit

Permalink
Updated comment based help for Get-ShlinkVisits
Browse files Browse the repository at this point in the history
  • Loading branch information
codaamok committed Apr 23, 2022
1 parent 8c0ea0b commit 4071850
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"label": "Build (with docs)",
"type": "process",
"command": "pwsh",
"args": ["-noprofile","-command","Invoke-Build","-File","./invoke.build.ps1","-Author","'codaamok'","-ModuleName","'PSShlink'","-UpdateDocs"],
"args": ["-noprofile","-command","Invoke-Build","-File","./invoke.build.ps1","-Author","'codaamok'","-ModuleName","'PSShlink'","-UpdateDocs","$true"],
"group": {
"kind": "build",
"isDefault": true
Expand Down
7 changes: 7 additions & 0 deletions docs/Get-ShlinkVisits.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ Get-ShlinkVisits -ShortCode "profile" -StartDate (Get-Date "2020-11-01") -EndDat

Returns all visit data associated with the short code "profile" for the whole of November 2020

### EXAMPLE 5
```
Get-ShlinkVisits -Domain "contoso.com"
```

Returns all visit data associated with the domain "contoso.com"

## PARAMETERS

### -ShortCode
Expand Down
4 changes: 4 additions & 0 deletions src/Public/Get-ShlinkVisits.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ function Get-ShlinkVisits {
PS C:\> Get-ShlinkVisits -ShortCode "profile" -StartDate (Get-Date "2020-11-01") -EndDate (Get-Date "2020-12-01")
Returns all visit data associated with the short code "profile" for the whole of November 2020
.EXAMPLE
PS C:\> Get-ShlinkVisits -Domain "contoso.com"
Returns all visit data associated with the domain "contoso.com"
.INPUTS
This function does not accept pipeline input.
.OUTPUTS
Expand Down

0 comments on commit 4071850

Please sign in to comment.