mirror of
https://github.com/packwiz/packwiz.git
synced 2025-10-21 08:54:32 +02:00
Added author + pack version (#6)
* Added author + pack version * Remove unnecessary binary * Apply suggestions, clean up somewhat Co-authored-by: comp500 <comp500@users.noreply.github.com>
This commit is contained in:
@@ -346,3 +346,19 @@ func (u cfUpdater) DoUpdate(mods []*core.Mod, cachedState []interface{}) error {
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
type cfExportData struct {
|
||||
ProjectID int `mapstructure:"project-id"`
|
||||
}
|
||||
|
||||
func (e cfExportData) ToMap() (map[string]interface{}, error) {
|
||||
newMap := make(map[string]interface{})
|
||||
err := mapstructure.Decode(e, &newMap)
|
||||
return newMap, err
|
||||
}
|
||||
|
||||
func parseExportData(from map[string]interface{}) (cfExportData, error) {
|
||||
var exportData cfExportData
|
||||
err := mapstructure.Decode(from, &exportData)
|
||||
return exportData, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user