microsoft / winget-create

The Windows Package Manager Manifest Creator command-line tool (aka wingetcreate)
MIT License
503 stars 85 forks source link

Add a "replace" argument to `update` #277

Closed jedieaston closed 1 year ago

jedieaston commented 2 years ago

Description of the new feature / enhancement

Some packages only publish a single version at a time. As a contributor, I'd like to be able to use wingetcreate to create a new version, and in the same commit, remove the old version so that I don't have to follow up in a second PR to remove the currently broken version.

Proposed technical implementation details

A --replace argument for wingetcreate update, optionally taking a version number (but if none is given and there's a single version currently in the community repo, then it should just know to remove the only existing one).