Skip to content

Commit 873d4ad

Browse files
committed
Neuer Name:
PSFunctionTools-Tom Weil 'PSFunctionTools' sondt zwei Mal gefunden wird Release 1.0.1 Useful File handling Generates the File as UTF8 BOM
1 parent 8e83cd5 commit 873d4ad

6 files changed

+17
-17
lines changed

PSFunctionTools.psd1 PSFunctionTools-Tom.psd1

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
#
2-
# Module manifest for module PSFunctionTools
2+
# Module manifest for module PSFunctionTools-Tom
33
#
44

55
@{
6-
RootModule = 'PSFunctionTools.psm1'
7-
ModuleVersion = '1.0.0'
6+
RootModule = 'PSFunctionTools-Tom.psm1'
7+
ModuleVersion = '1.0.1'
88
CompatiblePSEditions = 'Core'
9-
GUID = '151466e0-a952-4b6a-ad81-40dafc9ef9bb'
10-
Author = 'Jeff Hicks'
11-
CompanyName = 'JDH Information Technology Solutions, Inc.'
12-
Copyright = '(c) 2021-2022 JDH Information Technology Solutions, Inc.'
13-
Description = 'A set of PowerShell commands for managing and automating PowerShell scripts, functions, and modules.'
9+
GUID = '2896522d-934d-481a-87a2-517582681ee4'
10+
Author = 'Thomas Schittli'
11+
CompanyName = ''
12+
Copyright = '(c) TomTom'
13+
Description = 'Based on Jeff Hicks PSFunctionTools 1.0.0. Patched by TomTom. A set of PowerShell commands for managing and automating PowerShell scripts, functions, and modules.'
1414
PowerShellVersion = '7.1'
1515
# TypesToProcess = @()
1616
FormatsToProcess = @('formats\modulelayout.format.ps1xml',
@@ -25,7 +25,7 @@
2525
'Get-PSRequirements', 'New-CommentHelp', 'Format-FunctionName',
2626
'Get-ModuleLayout', 'Get-ParameterBlock', 'Get-FunctionAttribute',
2727
'Get-FunctionProfile', 'New-ModuleFromFiles', 'New-ModuleFromLayout',
28-
'Get-PSFunctionTools','Export-FunctionToFile')
28+
'Get-PSFunctionTools-Tom','Export-FunctionToFile')
2929
CmdletsToExport = @()
3030
# VariablesToExport = @()
3131
AliasesToExport = @('gfal', 'ga', 'eff', 'eml', 'iml', 'csf', 'gpb',
File renamed without changes.
+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22

3-
Function Get-PSFunctionTools {
3+
Function Get-PSFunctionTools-Tom {
44
[cmdletbinding()]
55
[outputtype("PSFunctionTool")]
66
Param()
@@ -10,16 +10,16 @@ Function Get-PSFunctionTools {
1010
} #begin
1111

1212
Process {
13-
Write-Verbose "[$((Get-Date).TimeofDay) PROCESS] Getting commands from the PSFunctionTools module"
14-
$cmds = Get-Command -Module PSFunctionTools -CommandType Function | where-object { Test-FunctionName $_.name -Quiet }
13+
Write-Verbose "[$((Get-Date).TimeofDay) PROCESS] Getting commands from the PSFunctionTools-Tom module"
14+
$cmds = Get-Command -Module PSFunctionTools-Tom -CommandType Function | where-object { Test-FunctionName $_.name -Quiet }
1515
Write-Verbose "[$((Get-Date).TimeofDay) PROCESS] Found $($cmds.count) commands"
1616
foreach ($cmd in $cmds) {
1717
[pscustomobject]@{
1818
PSTypeName = "PSFunctionTool"
1919
Name = $cmd.Name
2020
Alias = ($n = Get-Alias -Definition $cmd.name -ErrorAction SilentlyContinue) ? $n.name : $null
2121
Synopsis = (Get-Help $cmd.name).Synopsis
22-
Module = "PSFunctionTools"
22+
Module = "PSFunctionTools-Tom"
2323
ModuleVersion = $cmd.version
2424
}
2525
}
@@ -30,4 +30,4 @@ Function Get-PSFunctionTools {
3030

3131
} #end
3232

33-
} #close Get-PSFunctionTools
33+
} #close Get-PSFunctionTools-Tom

samples/Demo-ExportFunctions.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#requires -version 7.1
22

33
#export functions from a single file to separate files
4-
Import-Module PSFunctionTools
4+
Import-Module PSFunctionTools-Tom
55

66
Export-FunctionFromFile -Path $PSScriptRoot\tools.psm1 -OutputPath $env:temp -Passthru

samples/POC-NewModule.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#a proof of concept to convert scripts to a new module
44

5-
Import-Module PSFunctionTools -Force
5+
Import-Module PSFunctionTools-Tom -Force
66

77
$NewModuleName = "PSMagic"
88
$Description = "A sample PowerShell module"

tests/psfunctiontools.tests.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Describe "$($global:ModuleName)" {
3131
} -Tag demo
3232

3333
It "Has a markdown help file for <name>" -ForEach @(
34-
(Get-Command -Module PSFunctiontools -CommandType function).ForEach({ @{Name = $_.name } })
34+
(Get-Command -Module PSFunctionTools-Tom -CommandType function).ForEach({ @{Name = $_.name } })
3535
) {
3636
$mdPath = Join-Path -Path "..\docs" -ChildPath "$($_.name).md"
3737
$mdPath | Should -Exist

0 commit comments

Comments
 (0)