Skip to content

🩹 [Patch]: Initializing module#6

Merged
Marius Storhaug (MariusStorhaug) merged 3 commits intomainfrom
init
May 3, 2026
Merged

🩹 [Patch]: Initializing module#6
Marius Storhaug (MariusStorhaug) merged 3 commits intomainfrom
init

Conversation

@MariusStorhaug
Copy link
Copy Markdown
Member

@MariusStorhaug Marius Storhaug (MariusStorhaug) commented May 3, 2026

Initializing the Toml module with a ConvertFrom-Toml placeholder function to get the module published to the PowerShell Gallery.

Copilot AI review requested due to automatic review settings May 3, 2026 07:58
@MariusStorhaug Marius Storhaug (MariusStorhaug) changed the title 🚀 [Feature]: Toml module now available on PowerShell Gallery 🩹 [Patch]: Initializing module May 3, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-Toml public function stub (currently throws NotImplementedException) 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.

Comment on lines +4 to +14
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)]
Comment thread tests/Toml.Tests.ps1

Describe 'Module' {
It 'Function: ConvertFrom-Toml - Throws NotImplementedException' {
{ ConvertFrom-Toml -InputObject '[database]' } | Should -Throw
Comment thread examples/General.ps1
host = "localhost"
port = 5432
'@
ConvertFrom-Toml -InputObject $toml
dependabot Bot and others added 2 commits May 3, 2026 10:05
…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
Copilot AI review requested due to automatic review settings May 3, 2026 08:08
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 3, 2026

Super-linter summary

Language Validation result
CHECKOV Pass ✅
GITHUB_ACTIONS Pass ✅
GITLEAKS Pass ✅
GIT_MERGE_CONFLICT_MARKERS Pass ✅
MARKDOWN Pass ✅
NATURAL_LANGUAGE Pass ✅
POWERSHELL Pass ✅
PRE_COMMIT Pass ✅
SPELL_CODESPELL Pass ✅
TRIVY Pass ✅
YAML Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread examples/General.ps1
host = "localhost"
port = 5432
'@
ConvertFrom-Toml -InputObject $toml
Comment thread tests/Toml.Tests.ps1

Describe 'Module' {
It 'Function: ConvertFrom-Toml - Throws NotImplementedException' {
{ ConvertFrom-Toml -InputObject '[database]' } | Should -Throw
Comment on lines +4 to +14
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.
Comment on lines +10 to +12
ConvertFrom-Toml -InputObject '[database]
host = "localhost"
port = 5432'
@MariusStorhaug Marius Storhaug (MariusStorhaug) merged commit 38b723e into main May 3, 2026
41 checks passed
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 3, 2026

✅ New release: PowerShell Gallery - Toml 0.0.1

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 3, 2026

✅ New release: GitHub - Toml v0.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants