From 2e527a59c7d4935425ecddc5b128412f179673f7 Mon Sep 17 00:00:00 2001 From: Oliver Lipkau Date: Wed, 5 Jan 2022 11:41:35 +0100 Subject: [PATCH] Updated documentation on private cmdlets --- Tests/Build.Tests.ps1 | 2 +- docs/en-US/commands/Invoke-Method.md | 37 ++++++++++++++++++++-------- 2 files changed, 28 insertions(+), 11 deletions(-) diff --git a/Tests/Build.Tests.ps1 b/Tests/Build.Tests.ps1 index fdffedc..bcdb4ac 100644 --- a/Tests/Build.Tests.ps1 +++ b/Tests/Build.Tests.ps1 @@ -60,7 +60,7 @@ Describe "Validation of build environment" -Tag Unit { } It "has a version changelog that matches the manifest version" { - Configuration\Get-Metadata -Path $env:BHManifestToTest -PropertyName ModuleVersion | Should -BeLike "$changelogVersion*" + (Metadata\Import-Metadata -Path $env:BHManifestToTest).ModuleVersion | Should -BeLike "$changelogVersion*" } } } diff --git a/docs/en-US/commands/Invoke-Method.md b/docs/en-US/commands/Invoke-Method.md index 75adf56..57f8d66 100644 --- a/docs/en-US/commands/Invoke-Method.md +++ b/docs/en-US/commands/Invoke-Method.md @@ -18,8 +18,9 @@ Invoke a specific call to a Confluence REST Api endpoint ```powershell Invoke-ConfluenceMethod [-URi] [[-Method] ] [[-Body] ] [-RawBody] - [[-Headers] ] [[-GetParameters] ] [[-InFile] ] [[-OutFile] ] - [[-OutputType] ] [-Credential] [[-Caller] ] [-IncludeTotalCount] [-Skip ] + [-Headers ] [-GetParameters ] [-InFile ] [-OutFile ] + [-OutputType ] [-Credential ] [-PersonalAccessToken ] + [-Certificate ] [-Caller ] [-IncludeTotalCount] [-Skip ] [-First ] [] ``` @@ -224,7 +225,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 4 +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -244,7 +245,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 5 +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -262,7 +263,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 6 +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -280,7 +281,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 7 +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -299,7 +300,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 8 +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -317,7 +318,23 @@ Parameter Sets: (All) Aliases: Required: False -Position: 9 +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PersonalAccessToken + +The PersonalAccessToken you created in your Confluence User Settings. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -335,7 +352,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 10 +Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -351,7 +368,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 11 +Position: Named Default value: $PSCmdlet Accept pipeline input: False Accept wildcard characters: False