JustinGrote / JAz.PIM

MIT License
30 stars 2 forks source link

Module autoloading #5

Open janegilring opened 2 years ago

janegilring commented 2 years ago

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.

JustinGrote commented 2 years ago

@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

bokkoman commented 1 year ago

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

JustinGrote commented 1 year ago

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 :)

bokkoman commented 1 year ago

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