-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add new function to list outdated packages #15
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
Conversation
Kudos, SonarCloud Quality Gate passed! |
Perform a check to see if WinGet is installed and ignore it if it's not - or send a message back to say WinGet wasn't found.. |
Think the latest commit addresses these points. |
Takes a bit of time to run with no info coming back, so I'd put in some outputs like 'Checking Chocolatey...", etc. |
Hmmm, that's intended, I primarily use this to write the files in the temp folder, so I can read them when starting a new console, This is done to give you instant results on launching a new terminal window. |
That's fine, but you probably still don't want it creating empty files. Or if you do, there's no point in checking for the file and then outputting that there are no updates based on whether there's a file there or not. |
Yeah fair point, I'll update to remove the files before it starts, then check the non-existence as a sign of no updates. |
Looks good to me! |
Added a new function
Get-Updates
which check for outdated Chocolatey, WinGet and PowerShell packages/modules.It also writes the outdated items to files in
$env:Temp
to be possibly queried in the PS profile to show outdated packages at the start of the terminal.