From c084f060d686021bfec7cf43d0baeafec3d31c49 Mon Sep 17 00:00:00 2001 From: "Patrick M. Meinecke" Date: Mon, 31 Jul 2017 11:21:03 -0400 Subject: [PATCH] Fix module loading and documentation link - Fixed an issue where the module loading would fail due to an empty directory not being included in the package. - Added the module landing page to the documentation. --- docs/en-US/ImpliedReflection.md | 27 +++++++++++++++++++++++++++ module/ImpliedReflection.psd1 | 4 ++-- module/ImpliedReflection.psm1 | 2 +- 3 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 docs/en-US/ImpliedReflection.md diff --git a/docs/en-US/ImpliedReflection.md b/docs/en-US/ImpliedReflection.md new file mode 100644 index 0000000..3c06f30 --- /dev/null +++ b/docs/en-US/ImpliedReflection.md @@ -0,0 +1,27 @@ +--- +Module Name: ImpliedReflection +Module Guid: 8834a5bf-9bf2-4f09-8415-3c1e561109f6 8834a5bf-9bf2-4f09-8415-3c1e561109f6 +Download Help Link: +Help Version: 1.0.0 +Locale: en-US +--- + +# ImpliedReflection Module + +## Description + +Explore private properties and methods as if they were public. + +## ImpliedReflection Cmdlets + +### [Add-PrivateMember](Add-PrivateMember.md) + +The Add-PrivateMember function binds all non-public members to an object in the same way the PowerShell engine binds public members. This allows the members to be viewed and invoked like any other property or method typically bound by PowerShell. Properties will be added as PSProperty objects and Methods will be bound as PSMethod objects. + +### [Disable-ImpliedReflection](Disable-ImpliedReflection.md) + +The Disable-ImpliedReflection function will disable the binding of non-public members to any object outputted to the console. + +### [Enable-ImpliedReflection](Enable-ImpliedReflection.md) + +The Enable-ImpliedReflection function replaces the Out-Default cmdlet with a proxy function that invokes Add-PrivateMember on every object outputted to the console. diff --git a/module/ImpliedReflection.psd1 b/module/ImpliedReflection.psd1 index 4a156f7..f57e158 100644 --- a/module/ImpliedReflection.psd1 +++ b/module/ImpliedReflection.psd1 @@ -12,7 +12,7 @@ RootModule = 'ImpliedReflection.psm1' # Version number of this module. -ModuleVersion = '0.1.0' +ModuleVersion = '0.1.1' # ID used to uniquely identify this module GUID = '8834a5bf-9bf2-4f09-8415-3c1e561109f6' @@ -80,7 +80,7 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - # ReleaseNotes = '' + ReleaseNotes = '- Fixed the module not loading.' } # End of PSData hashtable diff --git a/module/ImpliedReflection.psm1 b/module/ImpliedReflection.psm1 index 937bf9e..67e69a9 100644 --- a/module/ImpliedReflection.psm1 +++ b/module/ImpliedReflection.psm1 @@ -1,7 +1,7 @@ Import-LocalizedData -BindingVariable Strings -FileName Strings -ErrorAction Ignore # Include all function files. -Get-ChildItem $PSScriptRoot\Public\*.ps1, $PSScriptRoot\Private\*.ps1 | ForEach-Object { +Get-ChildItem $PSScriptRoot\Public\*.ps1 | ForEach-Object { . $PSItem.FullName }