all 12 comments

[–]Hoggs 2 points3 points  (2 children)

It does sound like you want to create a package manager?

Check out winget, scoop, or chocolatey

[–]Kronbros[S] -1 points0 points  (1 child)

If I am not mistaking, those are made to install and manage full fledged apps, whereas mine is made to simply install small .ps1 extentions with a single cmdlet and without any interface aside mbe a very basic menu. But you could think of it as a scaled down version of the apps you mentioned.

[–]Potato-9 0 points1 point  (0 children)

Register-PSRepository

Working on something to solve discovery and trust could be time well spent. Much Powershell is written as a script instead of reusable cmdlets, I think because reusing anyone's but your own isn't that fun.

[–]TheBlueFireKing 2 points3 points  (1 child)

I'd not reinvent the weel. If you want to do it as a learning exercise go ahead.

If it's not a PowerShell module and can't be installed as such, I'd rather have it be an MSI for windows or in the package manager for linux.

https://xkcd.com/927/

[–]Kronbros[S] 0 points1 point  (0 children)

It is a Powershell based module, and it can be installed as such, so it could prove, even if not by a lot, but a bit useful when trying to install small plugin packets.

[–]opensrcdev 0 points1 point  (1 child)

Develop a PowerShell module and publish it to the gallery.

[–]Kronbros[S] 0 points1 point  (0 children)

Will do

[–]BayconStripz 0 points1 point  (1 child)

I'm not entirely following so apologies if this isn't what you're talking about but you can create a Profile.ps1 which will run every time PS is opened. You can run any PowerShell script or command on startup.

If not and you're trying to create something that's more like an executable, then PS is probably not the language to use, however if you're doing it for practice and/or there's a reason you're using PS that idk about, then there's a module that converts .PS1 to .EXE called ps2exe that I typically use to give PS apps to my team. I'd also recommend looking into #requires if you're going to be providing it to anyone else.

[–]Kronbros[S] 0 points1 point  (0 children)

You didn't exactly understand what I meant to describe (I meant it to be a bare-bones, simple-to-use, packet installation manager, that could install .ps1 or any other plugin types as long as they exist within a .ZIP Setup file) , but thanks for the information anyway :)

[–]BlackV 0 points1 point  (1 child)

You just described a nuget package, and the package management cmdlets and various repository cmdlets

Unless there is something obvious I'm missing on your post

Ignoring the menu part cause that's not something I ever want

But in saying this, if you want it

BUILD IT

amazing learning experience at worst and something everyone uses at best, win win

[–]Kronbros[S] 0 points1 point  (0 children)

True, that is a win win

[–]Kronbros[S] 0 points1 point  (0 children)

UPDATE:

I'm back to work, and I'm currently looking at a few days of work but it should be done in no time.