cmdshared

package
v0.0.0-...-9cca744 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNonMetafileOverrides

func AddNonMetafileOverrides(index *core.Index, exp *zip.Writer)

AddNonMetafileOverrides saves all non-metadata files into an overrides folder in the zip

func AddToZip

func AddToZip(dl core.CompletedDownload, exp *zip.Writer, dir string, index *core.Index) bool

func GetRawForgeVersion

func GetRawForgeVersion(version string) string

func ListManualDownloads

func ListManualDownloads(session core.DownloadSession)

func PrintDisclaimer

func PrintDisclaimer(isCf bool)

func PromptYesNo

func PromptYesNo(prompt string) bool

Types

type McVersionManifest

type McVersionManifest struct {
	Latest struct {
		Release  string `json:"release"`
		Snapshot string `json:"snapshot"`
	} `json:"latest"`
	Versions []struct {
		ID          string    `json:"id"`
		Type        string    `json:"type"`
		URL         string    `json:"url"`
		Time        time.Time `json:"time"`
		ReleaseTime time.Time `json:"releaseTime"`
	} `json:"versions"`
}

func GetValidMCVersions

func GetValidMCVersions() (McVersionManifest, error)

func (McVersionManifest) CheckValid

func (m McVersionManifest) CheckValid(version string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL