Skip to content

feat: Add AcceptPrompts parameter for automatic Linux updates - #142

Merged
SamErde merged 5 commits into
SamErde:mainfrom
jorgeasaurus:main
Dec 4, 2025
Merged

feat: Add AcceptPrompts parameter for automatic Linux updates#142
SamErde merged 5 commits into
SamErde:mainfrom
jorgeasaurus:main

Conversation

@jorgeasaurus

Copy link
Copy Markdown
Contributor

Pull Request

Type of Change

  • 📖 Documentation
  • 🪲 Fix
  • 🩹 Patch
  • ⚠️ Security Fix
  • 🚀 Feature
  • 💥 Breaking Change

Issue

Addresses #73

Description

Hi @SamErde,

This PR adds an AcceptPrompts switch parameter to Update-AllTheThings that automatically accepts prompts during Linux package upgrades.

When the -AcceptPrompts switch is specified on Linux systems, the function passes the -y flag to apt upgrade and dnf update, eliminating the need for manual [Y/n] confirmation during updates.

Changes:

  • Added AcceptPrompts switch parameter to Update-AllTheThings.ps1
  • Updated documentation in Update-AllTheThings.md with parameter
    description and examples
  • Added unit tests for the new parameter
  • Fixed a minor typo

Checklist

  • 🕵️ I have reviewed my code for errors and tested it.
  • 🚩 My pull request does not contain multiple types of changes.
  • 📄 By submitting this pull request, I confirm that my contribution is made under the terms of the projects associated license.

Final output after running the "." task in VS Code (that's nifty btw):
"$PSVersionTable;Invoke-Build -Task . -File '${workspaceFolder}/src/${workspaceFolderBasename}.build.ps1'"

image

@SamErde SamErde left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@SamErde
SamErde merged commit 62c75c0 into SamErde:main Dec 4, 2025
9 of 11 checks passed
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

Successfully merging this pull request may close these issues.

2 participants