shell

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2025 License: GPL-3.0 Imports: 45 Imported by: 1

Documentation

Index

Constants

View Source
const (
	SimLog     = "./macondo-simlog"
	InferLog   = "./macondo-inferlog"
	PEGLog     = "./macondo-peglog"
	EndgameLog = "./macondo-endgamelog"
)

Variables

This section is empty.

Functions

func Loader added in v0.9.3

func Loader(L *lua.LState) int

func MergeDirectories added in v0.10.1

func MergeDirectories(srcDir, destDir string) error

func MoveTableRow

func MoveTableRow(idx int, m *move.Move, alph *tilemapping.TileMapping) string

Types

type Asset added in v0.10.1

type Asset struct {
	Name   string
	URL    string
	GitTag string
}

type CmdOptions added in v0.9.0

type CmdOptions map[string][]string

func (CmdOptions) Bool added in v0.9.0

func (c CmdOptions) Bool(key string) bool

func (CmdOptions) Int added in v0.9.0

func (c CmdOptions) Int(key string) (int, error)

func (CmdOptions) IntDefault added in v0.9.0

func (c CmdOptions) IntDefault(key string, defaultI int) (int, error)

func (CmdOptions) String added in v0.9.0

func (c CmdOptions) String(key string) string

func (CmdOptions) StringArray added in v0.9.0

func (c CmdOptions) StringArray(key string) []string

type Mode

type Mode int
const (
	StandardMode Mode = iota
	EndgameDebugMode
	InvalidMode
)

type ReleaseInfo added in v0.10.1

type ReleaseInfo struct {
	TagName string `json:"tag_name"`
	Assets  []struct {
		Name               string `json:"name"`
		BrowserDownloadURL string `json:"browser_download_url"`
	} `json:"assets"`
}

type Response added in v0.4.5

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

type ShellController

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

func NewShellController

func NewShellController(cfg *config.Config, execPath, gitVersion string) *ShellController

func (*ShellController) Cleanup added in v0.10.0

func (sc *ShellController) Cleanup()

func (*ShellController) Execute added in v0.4.5

func (sc *ShellController) Execute(sig chan os.Signal, line string)

func (*ShellController) IsPlaying added in v0.4.5

func (sc *ShellController) IsPlaying() bool

func (*ShellController) Loop

func (sc *ShellController) Loop(sig chan os.Signal)

func (*ShellController) Set added in v0.4.5

func (sc *ShellController) Set(key string, args []string) (string, error)

type ShellOptions added in v0.4.5

type ShellOptions struct {
	turnplayer.GameOptions
	// contains filtered or unexported fields
}

Options to configure the interactve shell

func NewShellOptions added in v0.4.5

func NewShellOptions() *ShellOptions

func (*ShellOptions) Show added in v0.4.5

func (opts *ShellOptions) Show(key string) (bool, string)

func (*ShellOptions) ToDisplayText added in v0.4.5

func (opts *ShellOptions) ToDisplayText() string

Jump to

Keyboard shortcuts

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