WIP curseforge integration

This commit is contained in:
comp500
2019-04-30 17:03:22 +01:00
parent 5f92843226
commit 857f692fc6
3 changed files with 168 additions and 4 deletions

View File

@@ -1,8 +1,9 @@
package core
// UpdateParsers stores all the update parsers that packwiz can use. Add your own update systems to this map.
var UpdateParsers map[string]UpdateParser = make(map[string]UpdateParser)
var UpdateParsers = make(map[string]UpdateParser)
// UpdateParser takes an unparsed interface{}, and returns an Updater for a mod file
// UpdateParser takes an unparsed interface{} (as a map[string]interface{}), and returns an Updater for a mod file.
// This can be done using the mapstructure library or your own parsing methods.
type UpdateParser interface {
ParseUpdate(interface{}) (Updater, error)
}