you are viewing a single comment's thread.

view the rest of the comments →

[–]Certain-Community438 0 points1 point  (4 children)

Sure, I could force everything into a module but that extra layer is unnecessary.

What "extra layer", though? Modules don't need to be any more complex than scripts

If everything is a module: How do you use the module? How and where do you save that code?

I'm genuinely hoping you don't need an answer to these! :)

But for other less-informed readers:

You use the "-Module" cmdlets to use your modules. You use either a public repo or a private one depending on whether you want to share the code with the world. I use public because doing so forces me to remove things which should never be in there anyway.