internal

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ItemTypeMod = "mod"
	ItemTypeMap = "map"

	ConfigFilename = "Config.yaml"
)

Variables

This section is empty.

Functions

func InstallItems

func InstallItems(bf2InstallPath string, items []InstallItem) error

func UninstallItems

func UninstallItems(bf2InstallPath string, items []InstallItem) error

Types

type Config

type Config struct {
	InstallItems []InstallItem `yaml:"items"`
}

func LoadConfig

func LoadConfig() (*Config, error)

func (*Config) GetItemOfType

func (c *Config) GetItemOfType(itemType ItemType) []InstallItem

type InstallItem

type InstallItem struct {
	Type       ItemType `yaml:"type"`
	SourcePath string   `yaml:"src_path"`
	ForMod     string   `yaml:"for_mod"`
}

type ItemType

type ItemType string

Jump to

Keyboard shortcuts

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