external help file | Module Name | online version | schema |
---|---|---|---|
PSProjectStatus-help.xml |
PSProjectStatus |
2.0.0 |
Get project status.
Get-PSProjectStatus [[-Path] <String>] [<CommonParameters>]
This command will get the project status from the JSON file found in the module root directory. Get-PSProjectStatus will check the current directory by default, or you can specify the parent path of another directory.
PS C:\Scripts\PSClock> Get-PSProjectStatus
Name: PSClock [C:\Scripts\PSClock]
LastUpdate Status Tasks GitBranch Age
---------- ------ ----- --------- ---
10/17/2024 1:00:56 PM Stable {Pester tests} main 80.20:40
Get the status from the current directory.
C:\Scripts\ dir -Directory | Get-PSProjectStatus -WarningAction SilentlyContinue
Name: ADReportingTools [C:\Scripts\ADReportingTools]
LastUpdate Status Tasks GitBranch Age
---------- ------ ----- --------- ---
6/21/2021 4:47:11 PM Updating {Publish new ... 1.4.0 266.17:59
Name: GitDevTest [C:\scripts\GitDevTest]
LastUpdate Status Tasks GitBranch Age
---------- ------ ----- --------- ---
2/3/2022 4:50:37 PM Stable {update readm... master 39.17:55
Name: MyTasks [C:\Scripts\MyTasks]
LastUpdate Status Tasks GitBranch Age
---------- ------ ----- --------- ---
10/14/2020 1:29:59 PM Stable master 516.21:16
...
Get status for multiple projects. You could also use the Get-PSProjectReport command.
PS C:\Scripts\PSCalendar> Get-PSProjectStatus | Format-List
Project: PSCalendar [C:\scripts\PSCalendar]
Version : 2.9.0
Status : Stable
Tasks : {Update Help, Issue 34}
Tags : {}
GitBranch : master
LastUpdate : 3/1/2022 5:50:00 AM
Age : 669.10:07:19
Use the default List view. This makes it easier to view the tasks.
PS C:\Scripts\PSProjectStatus> Get-PSProjectStatus | Select-Object VersionInfo,Age
Name : PSProjectStatus
Status : Updating
Version : 0.5.0
GitBranch : 0.5.0
LastUpdate : 3/23/2022 11:30:42 AM
Age : 00:06:06.2337458
Get status using the versionInfo property set and the Age script property.
Enter the parent path to the psproject.json file, e.g. c:\scripts\mymodule
Type: String
Parameter Sets: (All)
Aliases: FullName
Required: False
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
This command has an alias of gpstat.
Learn more about PowerShell: http://jdhitsolutions.com/blog/essential-powershell-resources/