winget-create icon indicating copy to clipboard operation
winget-create copied to clipboard

Add a "replace" argument to `update`

Open jedieaston opened this issue 3 years ago • 0 comments

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).

jedieaston avatar Jun 30 '22 11:06 jedieaston