Skip to content

Commit

Permalink
Find-TssReport - adjust param order
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmelton committed Aug 21, 2021
1 parent 22e9d12 commit 3a229ae
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 26 deletions.
36 changes: 18 additions & 18 deletions docs/commands/reports/Find-TssReport.md
Expand Up @@ -6,8 +6,8 @@ Find a report.
## SYNTAX

```
Find-TssReport [-TssSession] <Session> [-CategoryId <Int32>] [-IncludeInactive] [-Name <String>]
[-SearchText <String>] [<CommonParameters>]
Find-TssReport [-TssSession] <Session> [-Name <String>] [-SearchText <String>] [-CategoryId <Int32>]
[-IncludeInactive] [<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -48,62 +48,62 @@ Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```

### -CategoryId
Category ID tp search
### -Name
Name of Report

```yaml
Type: Int32
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -IncludeInactive
Include Inactive Reports
### -SearchText
Search text

```yaml
Type: SwitchParameter
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Name
Name of Report
### -CategoryId
Category ID tp search

```yaml
Type: String
Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
```

### -SearchText
Search text
### -IncludeInactive
Include Inactive Reports

```yaml
Type: String
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
Expand Down
17 changes: 9 additions & 8 deletions src/functions/reports/Find-TssReport.ps1
Expand Up @@ -35,21 +35,22 @@ function Find-TssReport {
[Thycotic.PowerShell.Authentication.Session]
$TssSession,

# Name of Report
[string]
$Name,

# Search text
[string]
$SearchText,

# Category ID tp search
[int]
$CategoryId,

# Include Inactive Reports
[switch]
$IncludeInactive,
$IncludeInactive

# Name of Report
[string]
$Name,

# Search text
[string]
$SearchText
)
begin {
$tssParams = $PSBoundParameters
Expand Down

0 comments on commit 3a229ae

Please sign in to comment.