mcmodupdater

package module
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: BSD-2-Clause Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type McModUpdater

type McModUpdater struct {
	// contains filtered or unexported fields
}

func NewMcModUpdater

func NewMcModUpdater(conf *config.Config) (*McModUpdater, error)

func (*McModUpdater) LoadTree

func (m *McModUpdater) LoadTree(tree fs.StatFS, propsName string) (*develop.PlatformVersions, error)

func (*McModUpdater) PlatArch

func (m *McModUpdater) PlatArch() *dev.Architectury

func (*McModUpdater) Platforms

func (m *McModUpdater) Platforms() map[develop.DevPlatform]develop.Develop

func (*McModUpdater) UpdateGradleProperties added in v0.0.8

func (m *McModUpdater) UpdateGradleProperties(out io.StringWriter, gProp io.Reader, ver map[develop.PropVersion]string) (err error)

func (*McModUpdater) UpdateToVersion

func (m *McModUpdater) UpdateToVersion(out io.StringWriter, tree fs.StatFS, name string, ver map[develop.PropVersion]string) error

func (*McModUpdater) VersionUpdateList

func (m *McModUpdater) VersionUpdateList(info *develop.PlatformVersions) VersionUpdateList

type VersionUpdateItem

type VersionUpdateItem struct {
	Property        develop.PropVersion
	Current, Latest string
}

type VersionUpdateList

type VersionUpdateList []VersionUpdateItem

func (VersionUpdateList) ChangeToLatest

func (v VersionUpdateList) ChangeToLatest() map[develop.PropVersion]string

Directories

Path Synopsis
cmd
dev

Jump to

Keyboard shortcuts

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