Skip to content

Finalize V3 script cleanup and documentation#4

Open
GhostwheeI wants to merge 1 commit into
mainfrom
update-v3-docs-fix-script-bugs-12230782089014774149
Open

Finalize V3 script cleanup and documentation#4
GhostwheeI wants to merge 1 commit into
mainfrom
update-v3-docs-fix-script-bugs-12230782089014774149

Conversation

@GhostwheeI

Copy link
Copy Markdown
Owner

Finalized V3 script cleanup and documentation.

  1. Script fixes: Removed redundant code accidentally appended to the end of the script (Read-YesNo, Pause, Ensure-MicrosoftUpdateService, Main), changed all undefined/aliased references of Pause to Pause-UI, fixed Linux APPDATA null fallback path when parsing with core pwsh.
  2. Documentation update: Updated README.md and USER_GUIDE.md to indicate version 3 (3.0.0), updated the script usage filename inside these files, added reference to V3's visuals and sounds config objects, and changed the upgrade guide to note V2 to V3 rather than V1 to V2.

PR created automatically by Jules for task 12230782089014774149 started by @GhostwheeI

- Cleaned up trailing duplicate functions in WindowsUpdate-Manager.ps1 (Read-YesNo, Ensure-MicrosoftUpdateService, Pause) and the trailing redundant Main call.
- Replaced ambiguous Pause command invocations with the internally defined Pause-UI function.
- Prevented potential error regarding APPDATA path fallback on Linux when using cross-platform Powershell.
- Updated README.md and USER_GUIDE.md to reflect the new script version v3.0.0.
- Documented Visual and Sounds configuration object schema and V3 features.
- Re-named document references from WindowsUpdate-Manager_v2.ps1 to WindowsUpdate-Manager.ps1.
@google-labs-jules

Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 16508aeca5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread WindowsUpdate-Manager.ps1
[Parameter(HelpMessage="Path to configuration file")]
[ValidateNotNullOrEmpty()]
[string]$ConfigPath = (Join-Path $env:APPDATA "WindowsUpdateManager\config.json"),
[string]$ConfigPath = (Join-Path ($($env:APPDATA, $env:HOME | Select-Object -First 1)) "WindowsUpdateManager\config.json"),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Filter null APPDATA before selecting fallback

When running under PowerShell Core on Linux/macOS where APPDATA is unset, this expression still puts $null first and Select-Object -First 1 selects that value before $env:HOME, so Join-Path receives a null -Path and the script fails during parameter binding instead of using the fallback. Filter null/empty candidates before choosing the config root.

Useful? React with 👍 / 👎.

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.

1 participant