JAz.PIM icon indicating copy to clipboard operation
JAz.PIM copied to clipboard

Module autoloading

Open janegilring opened this issue 3 years ago • 4 comments

Is it possible to enable the module to work with module auto-loading?

For example by adding this to the manifest: FunctionsToExport = @('Get-JAzRole','Get-JAzADRole','Disable-JAzRole','Disable-JAzADRole','Enable-JAzRole','Enable-JAzADRole')

Not a big deal, but might be more user-friendly.

janegilring avatar May 17 '22 06:05 janegilring

@janegilring unfortunately there's a bug with DefaultCommandPrefix that precludes this from working, it's an active thing I'm looking for a resolution. https://github.com/PowerShell/PowerShell/issues/12858

JustinGrote avatar May 17 '22 15:05 JustinGrote

Is this issue been resolved yet? Would be nice to be auto loaded.

bokkoman avatar Feb 02 '23 12:02 bokkoman

Unless the upstream issue is addressed, it would require a major refactor of the code and that's low on my priority list at the moment. Accepting PRs :)

JustinGrote avatar Feb 02 '23 18:02 JustinGrote

My knowledge with PowerShell is extremely low, wish i could help ya out.

bokkoman avatar Feb 02 '23 18:02 bokkoman