rules

package
v0.0.0-...-bc22551 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exclude

func Exclude(exclusions JSONExclusions, entry, path string) []string

func ReadEngine

func ReadEngine(filePath string) (aflag.Engine, error)

func WriteAddons

func WriteAddons(fileName string, data JSONAddons) error

func WriteEngine

func WriteEngine(fileName string, data aflag.Engine) error

func WriteExclusions

func WriteExclusions(fileName string, data JSONExclusions) error

func WriteFormats

func WriteFormats(fileName string, data JSONFormats) error

func WriteLoadOrders

func WriteLoadOrders(fileName string, data JSONLoadOrder) error

func WriteRenames

func WriteRenames(fileName string, data JSONRenames) error

Types

type Addon

type Addon struct {
	Name        string `json:"name"`
	Source      string `json:"source"`
	Destination string `json:"destination"`
}

type Exclusion

type Exclusion struct {
	Name string `json:"name"`
	Path string `json:"path"`
}

type JSONAddons

type JSONAddons struct {
	JSON []Addon `json:"addons"`
}

func ReadAddons

func ReadAddons(filePath string) (JSONAddons, error)

type JSONExclusions

type JSONExclusions struct {
	JSON []Exclusion `json:"exclusions"`
}

func ReadExclusions

func ReadExclusions(filePath string) (JSONExclusions, error)

type JSONFormats

type JSONFormats struct {
	JSON []string `json:"formats"`
}

func ReadFormats

func ReadFormats(filePath string) (JSONFormats, error)

type JSONLoadOrder

type JSONLoadOrder struct {
	JSON []LoadOrder `json:"loadOrder"`
}

func ReadLoadOrders

func ReadLoadOrders(filePath string) (JSONLoadOrder, error)

type JSONRenames

type JSONRenames struct {
	JSON []Rename `json:"renames"`
}

func ReadRenames

func ReadRenames(filePath string) (JSONRenames, error)

type LoadOrder

type LoadOrder struct {
	Name  string `json:"name"`
	Index int    `json:"index"`
}

type Rename

type Rename struct {
	Name string `json:"name"`
	Old  string `json:"old"`
	New  string `json:"new"`
}

type Set

type Set struct {
	LoadOrder  JSONLoadOrder
	Addons     JSONAddons
	Renames    JSONRenames
	Exclusions JSONExclusions
}

Jump to

Keyboard shortcuts

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