config

package
v0.0.0-...-3b1d4bc Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigFile = "Wurm.toml"
)

Variables

View Source
var (
	Command         string
	Ignore          string
	Pattern         string
	PatternCompiled *regexp.Regexp
	Recursive       bool
)

Functions

func CreateFile

func CreateFile()

Types

type Config

type Config struct {
	Global GlobalTable
	Common map[string]Table
	Runner map[string]Table
	Meta   toml.MetaData
}

func ReadFile

func ReadFile() (config *Config)

type GlobalTable

type GlobalTable struct {
	IgnoreGlobal bool `toml:"ignore_global"`
	Recursive    bool
	Pattern      string

	Commands []string
	Ignore   []string
	Paths    []string
}

type Table

type Table struct {
	Use []string
	GlobalTable
}

func (*Table) Append

func (t *Table) Append(table TableAppender)

type TableAppender

type TableAppender interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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