Skip to content

Commit d04cd7d

Browse files
Merge pull request #1 from PSSecTools/modules
Introducing JEA Module Creation
2 parents e34f2f6 + a7b68cd commit d04cd7d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+2131
-60
lines changed

JEAnalyzer/JEAnalyzer.psd1

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
@{
22
# Script module or binary module file associated with this manifest
3-
ModuleToProcess = 'JEAnalyzer.psm1'
3+
RootModule = 'JEAnalyzer.psm1'
44

55
# Version number of this module.
6-
ModuleVersion = '1.0.0.1'
6+
7+
ModuleVersion = '1.1.0'
78

89
# ID used to uniquely identify this module
910
GUID = '346caa76-534a-4651-88f5-359e85cd71c0'
@@ -26,11 +27,11 @@
2627
# Modules that must be imported into the global environment prior to importing
2728
# this module
2829
RequiredModules = @(
29-
@{ ModuleName = 'PSFramework'; ModuleVersion = '0.9.25.113' }
30+
@{ ModuleName = 'PSFramework'; ModuleVersion = '1.0.12' }
3031
)
3132

3233
# Assemblies that must be loaded prior to importing this module
33-
# RequiredAssemblies = @('bin\JEAnalyzer.dll')
34+
RequiredAssemblies = @('bin\JEAnalyzer.dll')
3435

3536
# Type files (.ps1xml) to be loaded when importing this module
3637
# TypesToProcess = @('xml\JEAnalyzer.Types.ps1xml')
@@ -40,9 +41,16 @@
4041

4142
# Functions to export from this module
4243
FunctionsToExport = @(
43-
'Export-JeaRoleCapFile'
44+
'Add-JeaModuleRole'
45+
'ConvertTo-JeaCapability'
46+
'Import-JeaScriptFile'
47+
'New-JeaCommand'
48+
'New-JeaModule'
49+
'New-JeaRole'
4450
'Read-JeaScriptblock'
4551
'Read-JeaScriptFile'
52+
'Export-JeaModule'
53+
'Export-JeaRoleCapFile'
4654
)
4755

4856
# Cmdlets to export from this module

JEAnalyzer/JEAnalyzer.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ function Import-ModuleFile
4545
$Path
4646
)
4747

48-
if ($doDotSource) { . (Resolve-Path $Path) }
49-
else { $ExecutionContext.InvokeCommand.InvokeScript($false, ([scriptblock]::Create([io.file]::ReadAllText((Resolve-Path $Path)))), $null, $null) }
48+
if ($doDotSource) { . (Resolve-Path $Path).ProviderPath }
49+
else { $ExecutionContext.InvokeCommand.InvokeScript($false, ([scriptblock]::Create([io.file]::ReadAllText((Resolve-Path $Path).ProviderPath))), $null, $null) }
5050
}
5151

5252
#region Load individual files

JEAnalyzer/bin/JEAnalyzer.dll

9 KB
Binary file not shown.

JEAnalyzer/bin/JEAnalyzer.pdb

2.57 KB
Binary file not shown.

JEAnalyzer/bin/JEAnalyzer.xml

Lines changed: 300 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

JEAnalyzer/bin/readme.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# bin folder
2+
3+
The bin folder exists to store binary data. And scripts related to the type system.
4+
5+
This may include your own C#-based library, third party libraries you want to include (watch the license!), or a script declaring type accelerators (effectively aliases for .NET types)
6+
7+
For more information on Type Accelerators, see the help on Set-PSFTypeAlias

0 commit comments

Comments
 (0)