Skip to content

Commit

Permalink
Merge pull request #13 from theohbrothers/refactor/revise-new-itemlin…
Browse files Browse the repository at this point in the history
…k-parameter-order

Refactor: Revise New-ItemLink parameter order
  • Loading branch information
joeltimothyoh authored Aug 2, 2021
2 parents 1cfcd4e + 67e82b3 commit 1585d1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Sample definition files can be found [here](docs/samples/definitions/links).
#### Parameters

```powershell
New-ItemLink [-Path] <string> [-ItemType] {HardLink | Junction | SymbolicLink} [-Value] <string> [-Force] [<CommonParameters>]
New-ItemLink [-Path] <string> [-Value] <string> [-ItemType] {HardLink | Junction | SymbolicLink} [-Force] [<CommonParameters>]
```

#### Examples
Expand Down
8 changes: 4 additions & 4 deletions src/ItemLinkManagement/Public/New-ItemLink.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ function New-ItemLink {
[string]$Path
,
[Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)]
[ValidateSet('HardLink', 'Junction', 'SymbolicLink')]
[string]$ItemType
,
[Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)]
[ValidateNotNullOrEmpty()]
[string]$Value
,
[Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)]
[ValidateSet('HardLink', 'Junction', 'SymbolicLink')]
[string]$ItemType
,
[Parameter(Mandatory=$false)]
[switch]$Force
)
Expand Down

0 comments on commit 1585d1e

Please sign in to comment.