diff --git a/core/pack.go b/core/pack.go index f105222..5db7a06 100644 --- a/core/pack.go +++ b/core/pack.go @@ -15,11 +15,12 @@ import ( // Pack stores the modpack metadata, usually in pack.toml type Pack struct { - Name string `toml:"name"` - Author string `toml:"author,omitempty"` - Version string `toml:"version,omitempty"` - PackFormat string `toml:"pack-format"` - Index struct { + Name string `toml:"name"` + Author string `toml:"author,omitempty"` + Version string `toml:"version,omitempty"` + Description string `toml:"description,omitempty"` + PackFormat string `toml:"pack-format"` + Index struct { // Path is stored in forward slash format relative to pack.toml File string `toml:"file"` HashFormat string `toml:"hash-format"` diff --git a/modrinth/export.go b/modrinth/export.go index 8032c88..e22c940 100644 --- a/modrinth/export.go +++ b/modrinth/export.go @@ -165,6 +165,7 @@ var exportCmd = &cobra.Command{ Game: "minecraft", VersionID: pack.Version, Name: pack.Name, + Summary: pack.Description, Files: manifestFiles, Dependencies: dependencies, } diff --git a/modrinth/pack.go b/modrinth/pack.go index dba40c1..01ef051 100644 --- a/modrinth/pack.go +++ b/modrinth/pack.go @@ -1,14 +1,13 @@ package modrinth type Pack struct { - FormatVersion int `json:"formatVersion"` - Game string `json:"game"` - VersionID string `json:"versionId"` - Name string `json:"name"` - // TODO: implement Summary - // Summary string `json:"summary"` - Files []PackFile `json:"files"` - Dependencies map[string]string `json:"dependencies"` + FormatVersion int `json:"formatVersion"` + Game string `json:"game"` + VersionID string `json:"versionId"` + Name string `json:"name"` + Summary string `json:"summary,omitempty"` + Files []PackFile `json:"files"` + Dependencies map[string]string `json:"dependencies"` } type PackFile struct {