Skip to content

Commit 9467262

Browse files
alan-nullSean Wheeler
authored andcommitted
Fixed Test-ScriptFileInfo example (#1852)
1 parent a5f21c5 commit 9467262

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

reference/5.1/PowershellGet/Test-ScriptFileInfo.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,16 @@ The script file includes valid metadata.
4444

4545
### Example 2: Test a script file that has values for all metadata properties
4646
```
47-
PS C:\> Test-ScriptFileInfo -Path "D:\code\Test-Runbook.ps1 | Format-List *
47+
PS C:\> Test-ScriptFileInfo -Path "D:\code\Test-Runbook.ps1" | Format-List *
4848
Name : Test-Runbook
4949
Path : D:\code\Test-Runbook.ps1
5050
ScriptBase : D:\code
51-
ReleaseNotes : {contoso script now supports following features, Feature 1, Feature 2, Feature 3...}
51+
ReleaseNotes : {contoso script now supports following features, Feature 1, Feature 2, Feature 3...}
5252
Version : 1.0
5353
Guid : eb246b19-17da-4392-8c89-7c280f69ad0e
5454
Author : pattif
5555
CompanyName : Microsoft Corporation
56-
Copyright : © 2015 Microsoft Corporation. All rights reserved.
56+
Copyright : © 2015 Microsoft Corporation. All rights reserved.
5757
Tags : {Tag1, Tag2, Tag3}
5858
LicenseUri : https://contoso.com/License
5959
ProjectUri : https://contoso.com/
@@ -63,7 +63,7 @@ RequiredScripts : {Start-WFContosoServer, Stop-ContosoServerScript}
6363
ExternalScriptDependencies : Stop-ContosoServerScript
6464
Description : Contoso Script example
6565
RequiredModules : {RequiredModule1, @{ ModuleName = 'RequiredModule2'; ModuleVersion = '1.0' }, @{ ModuleName = 'RequiredModule3'; RequiredVersion = '2.0' }, ExternalModule1}
66-
ExportedCommands : {Test-WebUri, ValidateAndAdd-PSScriptInfoEntry, Get-PSScriptInfo, My-Workflow...}
66+
ExportedCommands : {Test-WebUri, ValidateAndAdd-PSScriptInfoEntry, Get-PSScriptInfo, My-Workflow...}
6767
ExportedFunctions : {Test-WebUri, ValidateAndAdd-PSScriptInfoEntry, Get-PSScriptInfo, My-AdvPSCmdlet}
6868
ExportedWorkflows : My-Workflow
6969
```
@@ -74,7 +74,7 @@ This command tests the script file Test-Runbook.ps1 and uses the pipeline operat
7474
```
7575
PS C:\> Test-ScriptFileInfo -Path "D:\code\Hello-World.ps1"
7676
Test-ScriptFileInfo : Script 'D:\code\Hello-World.ps1' is missing required metadata properties. Verify that the script file has Version, Description
77-
and Author properties. You can use the Update-ScriptFileInfo or New-ScriptFileInfo cmdlet to add or update the PSScriptInfo to the script file.
77+
and Author properties. You can use the Update-ScriptFileInfo or New-ScriptFileInfo cmdlet to add or update the PSScriptInfo to the script file.
7878
At line:1 char:1
7979
+ Test-ScriptFileInfo D:\code\Hello-World.ps1
8080
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -97,7 +97,7 @@ Single quotation marks tell Windows PowerShell not to interpret any characters a
9797
```yaml
9898
Type: String
9999
Parameter Sets: LiteralPathParameterSet
100-
Aliases:
100+
Aliases:
101101

102102
Required: True
103103
Position: Named
@@ -114,7 +114,7 @@ The default location is the current directory (.).
114114
```yaml
115115
Type: String
116116
Parameter Sets: PathParameterSet
117-
Aliases:
117+
Aliases:
118118

119119
Required: True
120120
Position: 0

reference/6/PowerShellGet/Test-ScriptFileInfo.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,16 @@ The script file includes valid metadata.
4444

4545
### Example 2: Test a script file that has values for all metadata properties
4646
```
47-
PS C:\> Test-ScriptFileInfo -Path "D:\code\Test-Runbook.ps1 | Format-List *
47+
PS C:\> Test-ScriptFileInfo -Path "D:\code\Test-Runbook.ps1" | Format-List *
4848
Name : Test-Runbook
4949
Path : D:\code\Test-Runbook.ps1
5050
ScriptBase : D:\code
51-
ReleaseNotes : {contoso script now supports following features, Feature 1, Feature 2, Feature 3...}
51+
ReleaseNotes : {contoso script now supports following features, Feature 1, Feature 2, Feature 3...}
5252
Version : 1.0
5353
Guid : eb246b19-17da-4392-8c89-7c280f69ad0e
5454
Author : pattif
5555
CompanyName : Microsoft Corporation
56-
Copyright : © 2015 Microsoft Corporation. All rights reserved.
56+
Copyright : © 2015 Microsoft Corporation. All rights reserved.
5757
Tags : {Tag1, Tag2, Tag3}
5858
LicenseUri : https://contoso.com/License
5959
ProjectUri : https://contoso.com/
@@ -63,7 +63,7 @@ RequiredScripts : {Start-WFContosoServer, Stop-ContosoServerScript}
6363
ExternalScriptDependencies : Stop-ContosoServerScript
6464
Description : Contoso Script example
6565
RequiredModules : {RequiredModule1, @{ ModuleName = 'RequiredModule2'; ModuleVersion = '1.0' }, @{ ModuleName = 'RequiredModule3'; RequiredVersion = '2.0' }, ExternalModule1}
66-
ExportedCommands : {Test-WebUri, ValidateAndAdd-PSScriptInfoEntry, Get-PSScriptInfo, My-Workflow...}
66+
ExportedCommands : {Test-WebUri, ValidateAndAdd-PSScriptInfoEntry, Get-PSScriptInfo, My-Workflow...}
6767
ExportedFunctions : {Test-WebUri, ValidateAndAdd-PSScriptInfoEntry, Get-PSScriptInfo, My-AdvPSCmdlet}
6868
ExportedWorkflows : My-Workflow
6969
```
@@ -74,7 +74,7 @@ This command tests the script file Test-Runbook.ps1 and uses the pipeline operat
7474
```
7575
PS C:\> Test-ScriptFileInfo -Path "D:\code\Hello-World.ps1"
7676
Test-ScriptFileInfo : Script 'D:\code\Hello-World.ps1' is missing required metadata properties. Verify that the script file has Version, Description
77-
and Author properties. You can use the Update-ScriptFileInfo or New-ScriptFileInfo cmdlet to add or update the PSScriptInfo to the script file.
77+
and Author properties. You can use the Update-ScriptFileInfo or New-ScriptFileInfo cmdlet to add or update the PSScriptInfo to the script file.
7878
At line:1 char:1
7979
+ Test-ScriptFileInfo D:\code\Hello-World.ps1
8080
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -97,7 +97,7 @@ Single quotation marks tell Windows PowerShell not to interpret any characters a
9797
```yaml
9898
Type: String
9999
Parameter Sets: LiteralPathParameterSet
100-
Aliases:
100+
Aliases:
101101

102102
Required: True
103103
Position: Named
@@ -114,7 +114,7 @@ The default location is the current directory (.).
114114
```yaml
115115
Type: String
116116
Parameter Sets: PathParameterSet
117-
Aliases:
117+
Aliases:
118118

119119
Required: True
120120
Position: 1

0 commit comments

Comments
 (0)