actions

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action interface {
	Run() error
}

func New

func New(kind ActionKind, game config.GameDef, mod mods.TrackedMod, done Done) (Action, error)

type ActionKind

type ActionKind byte
const (
	Install ActionKind = iota
	Uninstall
	Update
)

type Done added in v0.6.4

type Done func(result Result)

type Result added in v0.8.0

type Result struct {
	Status       mods.Result
	Err          error
	RequiredMods []mods.TrackedMod
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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