mcmodder

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: BSD-2-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type McModder

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

func NewMcModder

func NewMcModder(conf *config.Config, repo *git.Repository, cwd string) (*McModder, error)

func (*McModder) CurrentBranch

func (m *McModder) CurrentBranch() (*plumbing.Reference, error)

func (*McModder) GetProjectPath

func (m *McModder) GetProjectPath() string

func (*McModder) IsClean

func (m *McModder) IsClean() (bool, error)

func (*McModder) LoadBranch

func (m *McModder) LoadBranch(ref *plumbing.Reference) (*develop.BranchInfo, error)

func (*McModder) LoadBranches

func (m *McModder) LoadBranches() ([]*develop.BranchInfo, error)

func (*McModder) PlatArch

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

func (*McModder) PlatMap

func (m *McModder) PlatMap() []string

func (*McModder) Platforms

func (m *McModder) Platforms() map[string]develop.Develop

func (*McModder) UpdateToVersion

func (m *McModder) UpdateToVersion(out io.StringWriter, ver map[develop.PropVersion]string) error

func (*McModder) VersionUpdateList

func (m *McModder) VersionUpdateList(info *develop.BranchInfo) 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

Jump to

Keyboard shortcuts

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