JustinGrote / ModuleFast

A "fast and loose" way to install modules from Powershell Gallery quickly. Meant for CICD, not production
Other
77 stars 5 forks source link

`Installl-ModuleFast`: Make a `PassThru` parameter return an object instead of `WhatIf`? #34

Closed johlju closed 8 months ago

johlju commented 8 months ago

Maybe move the output to a PassThru parameter instead? That would be more intuitive that something is returned. 🤔

Originally posted by @johlju in https://github.com/JustinGrote/ModuleFast/issues/27#issuecomment-1868346122

johlju commented 8 months ago

Also see https://github.com/JustinGrote/ModuleFast/issues/27#issuecomment-1868345936.

JustinGrote commented 8 months ago

PassThru is different, PassThru will eventually return the installed modules information. That's different than a plan of what modules to install.

I haven't decided yet whether those will be native PSModuleInfo objects so you can straight import them, or if they will be ModuleInfo objects. When I get to that point I'll create it as a separate issue, but I'm going to close this as "not planned" and will link the passthru implementation when completed.

johlju commented 8 months ago

Yes, agree PassThru should be used for the actually modules that was installed. Didn't think that far ahead 🙂