Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/Process-PSModule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ permissions:

jobs:
Process-PSModule:
uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@60bdf8a5a4c92c53fcf2a8d23f7d5f5c93e6864e # v5.4.3
uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@11117919e65242d3388727819a751f74ad24ea9e # v5.5.0
secrets:
APIKEY: ${{ secrets.APIKEY }}
24 changes: 10 additions & 14 deletions examples/General.ps1
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
<#
.SYNOPSIS
This is a general example of how to use the module.
This is a general example of how to use the Toml module.
#>

# Import the module
Import-Module -Name 'PSModule'

# Define the path to the font file
$FontFilePath = 'C:\Fonts\CodeNewRoman\CodeNewRomanNerdFontPropo-Regular.tff'

# Install the font
Install-Font -Path $FontFilePath -Verbose

# List installed fonts
Get-Font -Name 'CodeNewRomanNerdFontPropo-Regular'

# Uninstall the font
Get-Font -Name 'CodeNewRomanNerdFontPropo-Regular' | Uninstall-Font -Verbose
Import-Module -Name 'Toml'

# Convert a TOML string to a PowerShell object
$toml = @'
[database]
host = "localhost"
port = 5432
'@
ConvertFrom-Toml -InputObject $toml
15 changes: 0 additions & 15 deletions src/classes/private/SecretWriter.ps1

This file was deleted.

147 changes: 0 additions & 147 deletions src/classes/public/Book.ps1

This file was deleted.

3 changes: 0 additions & 3 deletions src/data/Config.psd1

This file was deleted.

3 changes: 0 additions & 3 deletions src/data/Settings.psd1

This file was deleted.

18 changes: 0 additions & 18 deletions src/functions/private/Get-InternalPSModule.ps1

This file was deleted.

22 changes: 0 additions & 22 deletions src/functions/private/Set-InternalPSModule.ps1

This file was deleted.

24 changes: 24 additions & 0 deletions src/functions/public/ConvertFrom-Toml.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
function ConvertFrom-Toml {
<#
.SYNOPSIS
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'
Comment on lines +10 to +12

Converts a TOML string to a PowerShell object.
Comment on lines +4 to +14
Comment on lines +4 to +14
#>
[CmdletBinding()]
param (
# The TOML string to convert.
[Parameter(Mandatory)]
[string] $InputObject
)
$null = $InputObject
throw [System.NotImplementedException] 'ConvertFrom-Toml is not yet implemented.'
}
26 changes: 0 additions & 26 deletions src/functions/public/PSModule/Get-PSModuleTest.ps1

This file was deleted.

40 changes: 0 additions & 40 deletions src/functions/public/PSModule/New-PSModuleTest.ps1

This file was deleted.

3 changes: 0 additions & 3 deletions src/functions/public/PSModule/PSModule.md

This file was deleted.

25 changes: 0 additions & 25 deletions src/functions/public/SomethingElse/Set-PSModuleTest.ps1

This file was deleted.

1 change: 0 additions & 1 deletion src/functions/public/SomethingElse/SomethingElse.md

This file was deleted.

21 changes: 0 additions & 21 deletions src/functions/public/Test-PSModuleTest.ps1

This file was deleted.

Loading
Loading