configurator

package
v3.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 5 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandInterpreterCommand

func ExpandInterpreterCommand(command string) string

Types

type Configurator

type Configurator struct {
	FilePath   string
	CurrentDir string
	DataPath   string
	LocalePath string
	Version    string
}

func (*Configurator) DataLocalePath

func (c *Configurator) DataLocalePath() string

func (*Configurator) DataResourcePath

func (c *Configurator) DataResourcePath(relPath string) string

func (*Configurator) GetConfig

func (c *Configurator) GetConfig() (*InsteadmanConfig, error)

func (*Configurator) GetSkeletonConfig

func (c *Configurator) GetSkeletonConfig() (config *InsteadmanConfig, e error)

func (*Configurator) SaveConfig

func (c *Configurator) SaveConfig(config *InsteadmanConfig) error

type Gtk

type Gtk struct {
	HideSidebar bool `json:"hide_sidebar"`
	MainWidth   int  `json:"main_width"`
	MainHeight  int  `json:"main_height"`
}

type InsteadmanConfig

type InsteadmanConfig struct {
	Repositories             []Repository `json:"repositories"`
	InterpreterCommand       string       `json:"interpreter_command"`
	Version                  string       `json:"version"`
	UseBuiltinInterpreter    bool         `json:"use_builtin_interpreter"`
	Lang                     string       `json:"lang"`
	CheckUpdateOnStart       bool         `json:"check_update_on_start"`
	GamesPath                string       `json:"games_path"`
	InsteadManPath           string       `json:"insteadman_path"`
	Gtk                      Gtk          `json:"gtk"`
	CalculatedGamesPath      string       `json:"-"`
	CalculatedInsteadManPath string       `json:"-"`
}

type Repository

type Repository struct {
	Name string `json:"name"`
	Url  string `json:"url"`
}

Jump to

Keyboard shortcuts

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