Skip to content

Commit e0140bd

Browse files
committed
v2.0.1
1 parent 647bf61 commit e0140bd

3 files changed

Lines changed: 17 additions & 6 deletions

File tree

ModuleManifest/SimplySql.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Mithrandyr
55
#
6-
# Generated on: 2/8/2024
6+
# Generated on: 3/1/2024
77
#
88

99
@{
@@ -12,7 +12,7 @@
1212
RootModule = 'SimplySql.Cmdlets.dll'
1313

1414
# Version number of this module.
15-
ModuleVersion = '2.0.0.67'
15+
ModuleVersion = '2.0.1.69'
1616

1717
# Supported PSEditions
1818
# CompatiblePSEditions = @()

Tests/mssql.tests.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,4 @@ Describe "MSSQL" {
154154
} | Should -Not -Throw
155155
}
156156
}
157-
158-
159157
}

default.build.ps1

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
1-
param([version]$Version, [switch]$CommitRevision)
1+
param([version]$Version, [switch]$CommitRevision, [ValidateSet("Major", "Minor", "Build")][string]$Increment)
22
New-Alias -Name HV -Value (Resolve-Path HandleVerbose.ps1)
33

44
if(-not $version) {
55
$Script:Version = [Version](Import-PowerShellDataFile -Path "ModuleManifest\SimplySql.psd1")["ModuleVersion"]
6-
$Script:Version = [version]::new($version.Major, $version.Minor, $version.Build, $version.Revision + 1)
6+
switch ($Increment) {
7+
"Major" {
8+
$Script:Version = [version]::new($version.Major + 1, 0, 0, $version.Revision + 1)
9+
}
10+
"Minor" {
11+
$Script:Version = [version]::new($version.Major, $version.Minor + 1, 0, $version.Revision + 1)
12+
}
13+
"Build" {
14+
$Script:Version = [version]::new($version.Major, $version.Minor, $version.Build + 1, $version.Revision + 1)
15+
}
16+
default {
17+
$Script:Version = [version]::new($version.Major, $version.Minor, $version.Build, $version.Revision + 1)
18+
}
19+
}
720
}
821

922
task Clean { remove "output" }

0 commit comments

Comments
 (0)