Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ex06-module #2

Open
ITCTOM opened this issue Oct 16, 2024 · 0 comments
Open

ex06-module #2

ITCTOM opened this issue Oct 16, 2024 · 0 comments

Comments

@ITCTOM
Copy link

ITCTOM commented Oct 16, 2024

this isn´t working.

  • the public function files have diffrent names then the functions so you cant export those functions with export-modulemember -function $_.basename. Please renamre the .ps1 files so that they match the function name.

  • the private functions are not imported in the current shell so you have to dotsource the private .ps1 files in your script that calls that functions.

  • you are not able to call a private function "Get-MyDemoMessage" outside of your module in MyScript_callingModule.ps1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant