Skip to content
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

Adds Argument Completers To Update_All Script #2498

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JPRuskin
Copy link
Contributor

@JPRuskin JPRuskin commented Jul 3, 2024

Description

When running the Update_All.ps1 script, -Name can now tab-complete from the list of existing packages in the specified root-directory, and ForcedPackages can tab complete from existing packages prioritising those already in Name.

Definitely up for chatting if this actually fits other users, here, but I think it's a nice change to have - and it shouldn't break anyone else's workflow.

Motivation and Context

When testing PRs or branches, I frequently run Update_All with specific name or forced packages.

As a quality of life improvement, being able to tab complete packages in the arguments for the update_all script for use when developing or testing packages is pretty neat.

2024-07-03_14-05-26.mp4

How Has this Been Tested?

Tested locally on PowerShell 5.1.

Types of changes

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to change)
  • [ ] Migrated package (a package has been migrated from another repository)

Checklist:

  • My code follows the code style of this repository.
  • [ ] My change requires a change to documentation (this usually means the notes in the description of a package).
  • [ ] I have updated the documentation accordingly (this usually means the notes in the description of a package).
  • [ ] I have updated the package description and it is less than 4000 characters.
  • [ ] All files are up to date with the latest Contributing Guidelines
  • [ ] The added/modified package passed install/uninstall in the Chocolatey Test Environment(https://github.com/chocolatey-community/chocolatey-test-environment/). Note that we don't support the use of any other environment.
  • [ ] The changes only affect a single package (not including meta package).

QOL improvement: being able to tab complete packages in the arguments for the update_all script for use when developing or testing packages.

Name tab completes from the list of existing packages, ForcedPackages tab completes from existing packages _prioritising those already in Name_.
@AppVeyorBot
Copy link

✅ Package verification completed without issues. PR is now pending human review

@AdmiringWorm
Copy link
Member

I think this should be added to the packages template repository we have before it is added here.

Can you create an issue about it over at https://github.com/chocolatey-community/chocolatey-packages-template (and probably a PR)?

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.

3 participants