Skip to content

Commit 05f2d3a

Browse files
author
Friedrich Weinmann
committed
further migration implementations
1 parent 74e578a commit 05f2d3a

File tree

6 files changed

+89
-21
lines changed

6 files changed

+89
-21
lines changed

PSUtil/PSUtil.psd1

Lines changed: 66 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
ModuleToProcess = 'PSUtil.psm1'
44

55
# Version number of this module.
6-
ModuleVersion = '1.0.0'
6+
ModuleVersion = '2.0.0'
77

88
# ID used to uniquely identify this module
9-
GUID = 'f2df13af-4247-45f7-9f22-5cfc47d5bbac'
9+
GUID = '9ef51588-c40c-4064-910d-9b624b758cf6'
1010

1111
# Author of this module
1212
Author = 'Friedrich Weinmann'
@@ -21,7 +21,7 @@
2121
Description = 'Makes the daily PowerShell madness and toil easier to bear'
2222

2323
# Minimum version of the Windows PowerShell engine required by this module
24-
PowerShellVersion = '5.0'
24+
PowerShellVersion = '3.0'
2525

2626
# Modules that must be imported into the global environment prior to importing
2727
# this module
@@ -30,7 +30,7 @@
3030
)
3131

3232
# Assemblies that must be loaded prior to importing this module
33-
# RequiredAssemblies = @('bin\PSUtil.dll')
33+
RequiredAssemblies = @('bin\PSUtil.dll')
3434

3535
# Type files (.ps1xml) to be loaded when importing this module
3636
# TypesToProcess = @('xml\PSUtil.Types.ps1xml')
@@ -39,7 +39,32 @@
3939
# FormatsToProcess = @('xml\PSUtil.Format.ps1xml')
4040

4141
# Functions to export from this module
42-
FunctionsToExport = ''
42+
FunctionsToExport = @(
43+
'Add-PSUString'
44+
'Backup-PSULocation'
45+
'Convert-PSUObject'
46+
'Expand-PSUObject'
47+
'Format-PSUString'
48+
'Get-PSUPathAlias'
49+
'Invoke-PSUDesktop'
50+
'Invoke-PSUExplorer'
51+
'Invoke-PSUTemp'
52+
'Join-PSUString'
53+
'New-PSUDirectory'
54+
'Register-PSUObjectConversion'
55+
'Remove-PSUPathAlias'
56+
'Remove-PSUString'
57+
'Select-PSUFunctionCode'
58+
'Select-PSUObjectSample'
59+
'Set-PSUDrive'
60+
'Set-PSUObjectType'
61+
'Set-PSUPath'
62+
'Set-PSUPathAlias'
63+
'Set-PSUShell'
64+
'Set-PSUString'
65+
'Split-PSUString'
66+
'Start-PSUTimer'
67+
)
4368

4469
# Cmdlets to export from this module
4570
CmdletsToExport = ''
@@ -48,7 +73,39 @@
4873
VariablesToExport = ''
4974

5075
# Aliases to export from this module
51-
AliasesToExport = ''
76+
AliasesToExport = @(
77+
'a',
78+
'add',
79+
'bu',
80+
'c',
81+
'cast',
82+
'convert',
83+
'desktop',
84+
'ec',
85+
'ex',
86+
'exp',
87+
'explorer',
88+
'format',
89+
'grep',
90+
'ic',
91+
'inspect',
92+
'ix',
93+
'join',
94+
'm',
95+
'mcd',
96+
'new',
97+
'ocb',
98+
'replace',
99+
's',
100+
'set-as',
101+
'split',
102+
'spo',
103+
'temp',
104+
'timer',
105+
'trim',
106+
'v',
107+
'wrap'
108+
)
52109

53110
# List of all modules packaged with this module
54111
ModuleList = @()
@@ -63,19 +120,19 @@
63120
PSData = @{
64121

65122
# Tags applied to this module. These help with module discovery in online galleries.
66-
# Tags = @()
123+
Tags = @('Utility')
67124

68125
# A URL to the license for this module.
69126
# LicenseUri = ''
70127

71128
# A URL to the main website for this project.
72-
# ProjectUri = ''
129+
ProjectUri = 'http://psframework.org'
73130

74131
# A URL to an icon representing this module.
75132
# IconUri = ''
76133

77134
# ReleaseNotes of this module
78-
# ReleaseNotes = ''
135+
ReleaseNotes = 'https://github.com/PowershellFrameworkCollective/PSUtil/blob/master/PSUtil/changelog.md'
79136

80137
} # End of PSData hashtable
81138

PSUtil/internal/scripts/keybindings.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
if ((Get-PSFConfigValue -FullName "PSUtil.Import.Keybindings" -Fallback $true) -and (Get-Module PSReadline))
22
{
3-
foreach ($file in (Get-ChildItem -Path (Join-PSFPath $script:PSModuleRoot 'internal' 'keybindings'))
3+
foreach ($file in (Get-ChildItem -Path (Join-PSFPath $script:PSModuleRoot 'internal' 'keybindings')))
44
{
55
. Import-ModuleFile -Path $file.FullName
66
}

PSUtil/internal/scripts/postimport.ps1

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,22 @@ foreach ($file in (Get-ChildItem (Join-PSFPath $script:ModuleRoot 'internal' 'te
1111
# Load License
1212
. Import-ModuleFile -Path "$script:ModuleRoot\internal\scripts\license.ps1"
1313

14+
# Load expansions for Expand-PSUObject
1415
. Import-ModuleFile -Path "$script:ModuleRoot\internal\scripts\expandedObjects.ps1"
16+
17+
# Load aliases shipped with this module
1518
. Import-ModuleFile -Path "$script:ModuleRoot\internal\scripts\aliases.ps1"
19+
20+
# Load keybindings shipped with this module
1621
. Import-ModuleFile -Path "$script:ModuleRoot\internal\scripts\keybindings.ps1"
22+
23+
# Load type aliases
1724
. Import-ModuleFile -Path "$script:ModuleRoot\bin\type-aliases.ps1"
25+
1826
# Import aliases for Set-PSUPath
1927
. Import-ModuleFile -Path "$script:ModuleRoot\internal\scripts\pathAliases.ps1"
2028

2129
# Convert-PSUObject Conversions
22-
foreach ($file in (Get-ChildItem (Join-PSFPath $script:ModuleRoot 'internal' 'conversions')) {
30+
foreach ($file in (Get-ChildItem (Join-PSFPath $script:ModuleRoot 'internal' 'conversions'))) {
2331
. Import-ModuleFile -Path $file.FullName
2432
}
Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
# Add all things you want to run before importing the main code
2-
foreach ($function in (Get-ChildItem "$script:ModuleRoot\internal\configurations\validations\*"))
2+
foreach ($function in (Get-ChildItem (Join-PSFPath $script:ModuleRoot 'internal' 'configurations' 'validations')))
33
{
44
. Import-ModuleFile -Path $function.FullName
55
}
66

7-
foreach ($function in (Get-ChildItem "$script:ModuleRoot\internal\configurations\*.ps1"))
8-
{
9-
. Import-ModuleFile -Path $function.FullName
10-
}
11-
12-
foreach ($function in (Get-ChildItem "$script:ModuleRoot\internal\functions\*"))
7+
foreach ($function in (Get-ChildItem (Join-PSFPath $script:ModuleRoot 'internal' 'configurations' '*.ps1')))
138
{
149
. Import-ModuleFile -Path $function.FullName
1510
}

build/filesAfter.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
# List all files that are loaded in the postimport.ps1
22
# In the order they are loaded during postimport
33

4-
internal\configurations\*.ps1
54
internal\tepp\*.tepp.ps1
65
internal\tepp\assignment.ps1
7-
internal\scripts\license.ps1
6+
internal\scripts\license.ps1
7+
internal\scripts\expandedObjects.ps1
8+
internal\scripts\aliases.ps1
9+
internal\scripts\keybindings.ps1
10+
bin\type-aliases.ps1
11+
internal\scripts\license.ps1
12+
internal\scripts\conversions\*.ps1

build/filesBefore.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# List all files that are loaded in the preimport.ps1
2-
# In the order they are loaded during preimport
2+
# In the order they are loaded during preimport
3+
4+
internal\configurations\validations\*
5+
internal\configurations\*.ps1

0 commit comments

Comments
 (0)