Skip to content

Commit 9bbde62

Browse files
🚀 [Feature]: Moved PSCredential functions to the PSCredential module (#78)
## Description This pull request removes three PowerShell scripts related to the management of PSCredentials. The scripts provided functionalities for creating, restoring, and saving PSCredentials. These functions have been moved to [`PSCredential`](https://github.com/PSModule/PSCredential). Removal of PSCredential management scripts: * [`src/functions/public/PowerShell/PSCredential/New-PSCredential.ps1`](diffhunk://#diff-760a100357d1ec9525cff0a604255efcbd0478a3a91652cdb621452c786c1160L1-L39): Removed the script that created a PSCredential from a username and password. * [`src/functions/public/PowerShell/PSCredential/Restore-PSCredential.ps1`](diffhunk://#diff-e16f68514ca98d915abb547345d2c4b510e88acadb52d56e588a043f7d9c9030L1-L42): Removed the script that restored a PSCredential from a file. * [`src/functions/public/PowerShell/PSCredential/Save-PSCredential.ps1`](diffhunk://#diff-db306a63a340e6a237b8f99ceaabc235c9bb8677cb1c3bf9b9f5a0e2a0a1aaa0L1-L54): Removed the script that saved a PSCredential to a file. ## Type of change <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] 📖 [Docs] - [ ] 🪲 [Fix] - [ ] 🩹 [Patch] - [ ] ⚠️ [Security fix] - [x] 🚀 [Feature] - [ ] 🌟 [Breaking change] ## Checklist <!-- Use the check-boxes [x] on the options that are relevant. --> - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas
1 parent 0238703 commit 9bbde62

4 files changed

Lines changed: 0 additions & 151 deletions

File tree

src/functions/public/PowerShell/PSCredential/New-PSCredential.ps1

Lines changed: 0 additions & 39 deletions
This file was deleted.

src/functions/public/PowerShell/PSCredential/Restore-PSCredential.ps1

Lines changed: 0 additions & 42 deletions
This file was deleted.

src/functions/public/PowerShell/PSCredential/Save-PSCredential.ps1

Lines changed: 0 additions & 54 deletions
This file was deleted.

tests/Utilities.Tests.ps1

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,6 @@
55
param()
66

77
Describe 'Utilities' {
8-
Describe 'Function: Join-URI' {
9-
It "Join-Uri -Path 'https://example.com' -ChildPath 'foo' -AdditionalChildPath 'bar'" {
10-
$uri = Join-Uri -Path 'https://example.com' -ChildPath 'foo' -AdditionalChildPath 'bar'
11-
Write-Verbose $uri -Verbose
12-
Write-Verbose "Should -Be 'https://example.com/foo/bar'" -Verbose
13-
$uri | Should -Be 'https://example.com/foo/bar'
14-
}
15-
16-
It "Join-Uri 'https://example.com/foo' '/bar/' '//baz/something/' '/test/'" {
17-
$uri = Join-Uri 'https://example.com/foo' '/bar/' '//baz/something/' '/test/'
18-
Write-Verbose $uri -Verbose
19-
Write-Verbose "Should -Be 'https://example.com/foo/bar/baz/something/test'" -Verbose
20-
$uri | Should -Be 'https://example.com/foo/bar/baz/something/test'
21-
}
22-
}
23-
248
Describe 'Function: IsNullOrEmpty' {
259
It 'Returns true for $null' {
2610
($null | IsNullOrEmpty -Verbose) | Should -BeTrue

0 commit comments

Comments
 (0)