Skip to content

ArwynFr/pwsh-StepSemVer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StepSemVer

StepSemVer is a pwsh module used to increment semantic versions number.

PowerShell Gallery PowerShell Gallery

Rules and standards

The following documents provide additional information on rules and standards applying to this project :

How to use the module

This module contains a single command :

Step-SemVer

Returns a semantic version that increments an existing value.

Step-SemVer
  [[-Version] <semver>]
  [-BumpType] {major | minor | patch}
  [[-PreRelease] <string>]
  [[-Build] <string>]
  [<CommonParameters>]
-Version

Required and Pipelinable. Current version from which to do the increment.

-BumpType

Required. Must be one of major, minor, or patch. The new version number is incremented based on this value.

-PreRelease

Optional. If specified, sets the pre-release value of the new version.

-Build

Optional. If specified, sets the build value of the new version.