external help file | Module Name | online version | schema |
---|---|---|---|
PSProjectStatus-help.xml |
PSProjectStatus |
2.0.0 |
Create a new PSProjectStatus.
New-PSProjectStatus [[-Name] <String>] [-Path <String>] [-LastUpdate <DateTime>] [-Tasks <String[]>] [-Tags <String[]>] [-Status <PSProjectStatus>] [-ProjectVersion <Version>] [-Comment <String>] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
Create a new PSProject file. Ideally, you will run this command in the module root directory. The module manifest, if found, will be used for the Project Version. If a git branch is detected, it will automatically be used.
The command will not overwrite an existing PSProjectStatus file. If you want to overwrite an existing file, use the -Force parameter.
PS C:\Projects\Contoso> New-PSProjectStatus
Name: Contoso [C:\Projects\Contoso]
LastUpdate Status Tasks GitBranch Age
---------- ------ ----- --------- ---
12/22/2024 8:35:55 AM Development {} main 00.00:00
Create a new project status using default values.
PS C:\Scripts\PSScriptingInventory> New-PSProjectStatus -LastUpdate (Get-Item .\PSScriptingInventory.psd1).LastWriteTime -Status Stable -Comment "Script module"
Name: PSScriptingInventory [C:\scripts\PSScriptingInventory]
LastUpdate Status Tasks GitBranch Age
---------- ------ ----- --------- ---
6/19/2024 8:42:04 AM Stable {} main 234.01:13
Create a new project status. PSDrive references will be converted to filesystem paths. The Age property is automatically calculated from the LastUpdate value.
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
When was the project last worked on?
Type: DateTime
Parameter Sets: (All)
Aliases: date
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
What is the project name? The default is the current folder name.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: current folder name
Accept pipeline input: False
Accept wildcard characters: False
What is the project path?
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: .
Accept pipeline input: False
Accept wildcard characters: False
What is the project status? Accepted values are: Development Updating Stable AlphaTesting BetaTesting ReleaseCandidate Patching UnitTesting AcceptanceTesting Other
Type: PSProjectStatus
Parameter Sets: (All)
Aliases:
Accepted values: Development, Updating, Stable, AlphaTesting, BetaTesting, ReleaseCandidate, Patching, UnitTesting, AcceptanceTesting, Other
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
What are the remaining tasks?
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
What is the project version? The default value will be detected from a module manifest if found.
Type: Version
Parameter Sets: (All)
Aliases: version
Required: False
Position: Named
Default value: module version
Accept pipeline input: False
Accept wildcard characters: False
Enter an optional comment. This could be git tag, or an indication about the type of project.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Overwrite an existing PSProjectStatus file.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
What tags do you want to assign to this project?
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
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 npstat.
Learn more about PowerShell: http://jdhitsolutions.com/blog/essential-powershell-resources/