PwSh.Fw.Core

1.11.0-pre296

Root module of a simple Powershell Framework. It is specialized in writing system scripts, but it can of course do more.

This is a prerelease version of PwSh.Fw.Core.

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name PwSh.Fw.Core -AllowPrerelease

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name PwSh.Fw.Core -Prerelease

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2020-2024 Charles-Antoine Degennes. All rights reserved.

Package Details

Author(s)

  • Charles-Antoine Degennes

Tags

Windows Linux MacOS PwSh.Fw core

Functions

Add-PSModulePath Add-ToLogFile Convert-Size ConvertFrom-Base64 ConvertFrom-ConfigFile ConvertFrom-Plist ConvertFrom-Xml ConvertTo-Base64 ConvertTo-CamelCase ConvertTo-Hashtable ConvertTo-PascalCase ConvertTo-PSCustomObject ConvertTo-SingleString ConvertTo-StringData ConvertTo-UnixStylePath ConvertTo-WindowsStylePath Execute-Command Get-CustomObjectProperties Get-ObjectProperties Get-PropertyValueFromFile Get-PSModulePath Get-PwShFwConfiguration Get-PwShFwDisplayConfiguration Get-RawItemPropertyValue Get-ReturnCodeColor Get-ReturnCodeId Get-ReturnCodeString Get-ValidValuesFromPath Load-Module Merge-Hashtables Merge-Object New-TemplateFunction Read-PlistNode Remove-StringLatinCharacters Reset-Indent Reset-PwShFwConfiguration Resize-Image Resolve-Boolean Resolve-PathExtended Set-Indent Set-PwShFwConfiguration Set-PwShFwDisplayConfiguration Set-ReturnCodePosition Sort-ByProperties Sort-HashTable Test-DirExist Test-FileExist Test-IsUNCPath Test-RegKeyExist Test-RegValueExist Test-Variable Write-Add Write-Begin Write-Debug Write-Devel Write-End Write-Enter Write-EnterFunction Write-Error Write-Fatal Write-Indent Write-Info Write-Leave Write-LeaveFunction Write-LineBreak Write-Message Write-MyDebug Write-MyError Write-MyVerbose Write-MyWarning Write-Outdent Write-Question Write-ReturnCode Write-Title Write-Todo Write-ToLogFile Write-Verbose Write-Warning

PSEditions

Core

Dependencies

This module has no dependencies.

Release Notes

## [unreleased]
**:warning: BREAKING CHANGE** \
`Convert-Size` now return value AND unit. It is an object with 2 attributes. You can modify your code this way :
```pwsh
# before
$ConvertedSize = Convert-Size -Value $myobject.size
# after
$ConvertedSize = (Convert-Size -Value $myobject.size).Value
$ConvertedUnit = (Convert-Size -Value $myobject.size).Unit
```
### Added
- new `ConvertTo-Hastable` function
- new `ConvertTo-Base64` and `ConvertFrom-Base64` function
- new `Get-PSModulePath` function
- `Write-Devel` can now print hashtable and array at once with `-InputObject`
- new `ConvertTo-UnixStylePath` function
- new `ConvertTo-WindowsStylePath` function
### Changed
- improved `ConvertTo-StringData` function. It handle `PSCustomObject` object type.
- improved `ConvertTo-StringData` function. It converts `\` to `\\` in strings.
- enclose Start-transcript into a try-catch statement
- `Execute-Command` support `-WorkingDir` parameter
- `Convert-Size` now return value AND unit. It is an object with 2 attributes.
- `Merge-Object` allow `$null` parameters
### Fixed
- `Sort-ByProperties` works with `[Hashtable]`

FileList

Version History

Version Downloads Last updated
1.11.0-pre296 (current version) 4 9/20/2024
1.11.0-pre295 56 9/11/2024
1.11.0-pre294 7 9/10/2024
1.11.0-pre293 65 7/26/2024
1.11.0-pre292 770 4/19/2024
1.11.0-pre291 4 4/19/2024
1.11.0-pre290 6 4/19/2024
1.11.0-pre289 39 4/18/2024
1.11.0-pre288 12 4/18/2024
1.11.0-pre287 24 4/18/2024
1.11.0-pre286 7 4/18/2024
1.11.0-pre285 7 4/18/2024
1.11.0-pre284 15 4/17/2024
1.11.0-pre283 3 4/17/2024
1.11.0-pre282 632 1/19/2024
1.11.0-pre281 5 1/19/2024
1.11.0-pre280 104 10/11/2023
1.11.0-pre279 13 10/4/2023
1.11.0-pre278 88 9/8/2023
1.11.0-pre277 45 9/7/2023
1.11.0-pre276 44 7/27/2023
1.11.0-pre275 16 7/27/2023
1.11.0-pre274 7 7/27/2023
1.11.0-pre273 23 7/26/2023
1.10.2.271 58,112 7/13/2023
1.10.2-pre269 19 7/13/2023
1.10.1.266 547 5/25/2023
1.10.1.253 1,801 10/28/2022
1.10.0.263 6 5/25/2023
1.10.0-pre261 5 5/23/2023
1.10.0-pre243 24 9/28/2022
1.10.0-pre242 15 9/28/2022
1.10.0-pre241 18 9/28/2022
1.10.0-pre240 15 9/28/2022
1.10.0-pre238 15 9/28/2022
1.9.3-pre251 12 10/28/2022
1.9.2.248 64 9/28/2022
1.9.1.230 263 8/30/2022
1.9.0-pre222 836 10/13/2021
1.8.1.220 1,795 10/7/2021
1.8.0-pre212 29 10/6/2021
1.8.0-pre211 26 10/4/2021
1.8.0-pre210 34 9/22/2021
1.8.0-pre209 80 9/10/2021
1.8.0-pre208 50 9/1/2021
1.8.0-pre207 45 7/23/2021
1.8.0-pre206 30 7/23/2021
1.8.0-pre205 26 7/23/2021
1.8.0-pre204 25 7/21/2021
1.8.0-pre203 29 7/13/2021
1.8.0-pre199 84 6/7/2021
1.8.0-pre198 66 5/12/2021
1.7.2.202 764 6/9/2021
1.7.2-pre201 24 6/9/2021
1.7.2-pre200 24 6/9/2021
1.7.1.197 1,085 3/31/2021
1.7.1-pre196 26 3/31/2021
1.7.1-pre195 26 3/31/2021
1.7.0.194 72 3/31/2021
1.7.0-pre193 26 3/31/2021
1.7.0-pre192 27 3/31/2021
1.7.0-pre191 42 3/30/2021
1.7.0-pre190 28 3/30/2021
1.7.0-pre189 117 3/23/2021
1.7.0-pre188 286 3/9/2021
1.6.2.187 593 3/9/2021
1.6.2-pre186 28 3/9/2021
1.6.2-pre185 27 3/9/2021
1.6.2-pre183 27 3/9/2021
1.6.1.182 395 3/8/2021
1.6.1-pre181 27 3/8/2021
1.6.1-pre180 27 3/8/2021
1.6.1-pre179 68 3/5/2021
1.6.1-pre178 62 3/5/2021
1.6.1-pre177 37 3/5/2021
1.6.0.176 214 3/5/2021
1.6.0-pre175 28 3/5/2021
1.6.0-pre174 34 3/5/2021
1.6.0-pre173 53 3/4/2021
1.6.0-pre172 27 3/4/2021
1.6.0-pre171 104 3/2/2021
1.6.0-pre170 70 2/25/2021
1.6.0-pre169 33 2/25/2021
1.6.0-pre168 49 2/23/2021
1.6.0-pre167 25 2/23/2021
1.6.0-pre166 41 2/22/2021
1.5.5.164 1,118 12/2/2020
1.5.5-pre161 294 6/30/2020
1.5.5-pre160 57 6/29/2020
1.5.4.159 1,452 6/15/2020
1.5.4-pre158 25 6/15/2020
1.5.4-pre157 25 6/15/2020
1.5.3.156 55 6/15/2020
1.5.3-pre155 25 6/15/2020
1.5.3-pre151 25 6/15/2020
1.5.2-pre152 25 6/15/2020
1.5.2-pre150 25 6/15/2020
1.5.0.139 310 6/10/2020
1.5.0-pre137 84 6/4/2020
1.5.0-pre136 26 6/4/2020
1.5.0-pre131 40 6/3/2020
1.4.1.134 142 6/4/2020
1.4.1-pre143 25 6/10/2020
1.4.0.130 330 4/30/2020
1.4.0-pre142 26 6/10/2020
1.4.0-pre129 28 4/30/2020
1.4.0-pre128 32 4/30/2020
1.4.0-pre127 72 4/24/2020
1.4.0-pre126 31 4/22/2020
1.4.0-pre125 80 4/17/2020
1.4.0-pre124 65 4/12/2020
1.3.0.122 850 4/9/2020
1.3.0-pre140 25 6/10/2020
1.3.0-pre123 31 4/9/2020
1.3.0-pre121 31 4/9/2020
1.3.0-pre109 47 3/8/2020
1.2.0.107 269 2/29/2020
1.2.0-pre85 29 2/19/2020
1.2.0-pre105 27 2/29/2020
1.1.0.68 35 2/13/2020
1.1.0-pre83 27 2/18/2020
1.1.0-pre82 28 2/17/2020
1.1.0-pre69 27 2/13/2020
1.0.1 30 2/10/2020
0.0.0.28 37 1/20/2020
0.0.0.27 30 1/20/2020
0.0.0.26 30 1/20/2020
Show more