Add a command for changing the acceptable versions (#206)

* feat: add packwiz settings command to allow for changing acceptable versions

* Add deduping on the list

* Fix typo in comment

* Detect out of order list and give the user an option to correct it

* Support adding and removing specific versions

* Ensure the options aren't nil

* Clean up the slice removal boilerplate

* Fix usage of slices.Delete
This commit is contained in:
Matt Artist
2023-04-08 14:00:40 -04:00
committed by GitHub
parent 9bddd21d32
commit a344ba11ba
6 changed files with 167 additions and 3 deletions

View File

@@ -5,6 +5,7 @@ import (
"github.com/packwiz/packwiz/cmd"
_ "github.com/packwiz/packwiz/curseforge"
_ "github.com/packwiz/packwiz/modrinth"
_ "github.com/packwiz/packwiz/settings"
_ "github.com/packwiz/packwiz/url"
_ "github.com/packwiz/packwiz/utils"
)