Skip to content

Commit

Permalink
Add user/password params to Register-ChocoSource
Browse files Browse the repository at this point in the history
  • Loading branch information
halderex authored and ethanbergstrom committed Dec 3, 2023
1 parent 1ecc440 commit 81c90d7
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.3.1] - 2023-11-17
#### Added
* Optional `-User` and `-Password` parameters to `Register-ChocoSource`

## [0.3.0] - 2023-01-21
#### Added
* Futureproofing support for Chocolatey v2.0.0 and higher
Expand Down
16 changes: 16 additions & 0 deletions src/Foil.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,22 @@ $Commands = @(
ParameterType = 'string'
Description = 'Source Location'
Mandatory = $true
},
@{
Name = 'User'
OriginalName = '--user='
NoGap = $true
ParameterType = 'string'
Description = 'User Name'
Mandatory = $false
},
@{
Name = 'Password'
OriginalName = '--password='
NoGap = $true
ParameterType = 'string'
Description = 'User Password'
Mandatory = $false
}
)
},
Expand Down
2 changes: 1 addition & 1 deletion src/Foil.psd1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@{
RootModule = 'Foil.psm1'
ModuleVersion = '0.3.0'
ModuleVersion = '0.3.1'
GUID = '38430603-9954-45fd-949a-5f79492ffaf7'
Author = 'Ethan Bergstrom'
Copyright = '2021-2023'
Expand Down

0 comments on commit 81c90d7

Please sign in to comment.