🩹 [Patch]: Initializing module#6
Conversation
There was a problem hiding this comment.
Pull request overview
Initial Toml module release prep for PowerShell Gallery publishing by removing template scaffolding and establishing a minimal, discoverable public API (ConvertFrom-Toml) with a placeholder implementation.
Changes:
- Added
ConvertFrom-Tomlpublic function stub (currently throwsNotImplementedException) to establish the API surface. - Replaced template/sample Pester tests with a Toml-focused test.
- Removed template scaffold functions/classes/data and updated the general example to reference
Toml.
Reviewed changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/Toml.Tests.ps1 | Adds initial Pester coverage for the new ConvertFrom-Toml contract (currently “throws”). |
| tests/PSModuleTest.Tests.ps1 | Removes template scaffold tests for *-PSModuleTest functions. |
| src/functions/public/ConvertFrom-Toml.ps1 | Introduces the exported ConvertFrom-Toml placeholder cmdlet for the initial gallery release. |
| src/functions/public/completers.ps1 | Removes template argument completer tied to the deleted scaffold cmdlets. |
| src/functions/public/Test-PSModuleTest.ps1 | Removes template public function. |
| src/functions/public/SomethingElse/SomethingElse.md | Removes template documentation. |
| src/functions/public/SomethingElse/Set-PSModuleTest.ps1 | Removes template public function. |
| src/functions/public/PSModule/PSModule.md | Removes template documentation. |
| src/functions/public/PSModule/New-PSModuleTest.ps1 | Removes template public function and aliases. |
| src/functions/public/PSModule/Get-PSModuleTest.ps1 | Removes template public function. |
| src/functions/private/Set-InternalPSModule.ps1 | Removes template private function. |
| src/functions/private/Get-InternalPSModule.ps1 | Removes template private function. |
| src/data/Settings.psd1 | Removes template sample data. |
| src/data/Config.psd1 | Removes template sample data. |
| src/classes/public/Book.ps1 | Removes template public class scaffolding. |
| src/classes/private/SecretWriter.ps1 | Removes template private class scaffolding. |
| examples/General.ps1 | Updates example usage to reference Toml and ConvertFrom-Toml. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| Converts a TOML string to a PowerShell object. | ||
|
|
||
| .DESCRIPTION | ||
| Converts a TOML formatted string into a PowerShell hashtable or object. | ||
|
|
||
| .EXAMPLE | ||
| ConvertFrom-Toml -InputObject '[database] | ||
| host = "localhost" | ||
| port = 5432' | ||
|
|
||
| Converts a TOML string to a PowerShell object. |
| [CmdletBinding()] | ||
| param ( | ||
| # The TOML string to convert. | ||
| [Parameter(Mandatory)] |
|
|
||
| Describe 'Module' { | ||
| It 'Function: ConvertFrom-Toml - Throws NotImplementedException' { | ||
| { ConvertFrom-Toml -InputObject '[database]' } | Should -Throw |
| host = "localhost" | ||
| port = 5432 | ||
| '@ | ||
| ConvertFrom-Toml -InputObject $toml |
…e/Process-PSModule/dot-github/workflows/workflow.yml-5.5.0 Bump PSModule/Process-PSModule/.github/workflows/workflow.yml from 5.4.3 to 5.5.0
Super-linter summary
All files and directories linted successfully For more information, see the GitHub Actions workflow run Powered by Super-linter |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 18 out of 18 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| host = "localhost" | ||
| port = 5432 | ||
| '@ | ||
| ConvertFrom-Toml -InputObject $toml |
|
|
||
| Describe 'Module' { | ||
| It 'Function: ConvertFrom-Toml - Throws NotImplementedException' { | ||
| { ConvertFrom-Toml -InputObject '[database]' } | Should -Throw |
| Converts a TOML string to a PowerShell object. | ||
|
|
||
| .DESCRIPTION | ||
| Converts a TOML formatted string into a PowerShell hashtable or object. | ||
|
|
||
| .EXAMPLE | ||
| ConvertFrom-Toml -InputObject '[database] | ||
| host = "localhost" | ||
| port = 5432' | ||
|
|
||
| Converts a TOML string to a PowerShell object. |
| ConvertFrom-Toml -InputObject '[database] | ||
| host = "localhost" | ||
| port = 5432' |
|
✅ New release: PowerShell Gallery - Toml 0.0.1 |
|
✅ New release: GitHub - Toml v0.0.1 |
Initializing the Toml module with a
ConvertFrom-Tomlplaceholder function to get the module published to the PowerShell Gallery.