cmdshared

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 13 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddModrinthOverrides added in v0.2.0

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

AddModrinthOverrides also restores Modrinth's client/server override layers stored under .packwiz-mrpack in the source pack.

func AddNonMetafileOverrides

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

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) error

func GetRawForgeVersion

func GetRawForgeVersion(version string) string

func ListManualDownloads

func ListManualDownloads(session core.DownloadSession) error

func PrintDisclaimer

func PrintDisclaimer(isCf bool)

func PromptYesNo

func PromptYesNo(prompt string) (bool, error)

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) error

Jump to

Keyboard shortcuts

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