Documentation
¶
Index ¶
Constants ¶
View Source
const ( File = "configs.toml" DefaultLang = "English" DefaultTutorial = "enabled" DefaultMetrics = "yes" DefaultRunType = formula.DockerRun )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configs ¶
type Configs struct { Language string `toml:"language"` Tutorial string `toml:"tutorial"` Metrics string `toml:"metrics"` RunType formula.RunnerType `toml:"runType"` }
type Manager ¶
type Manager struct {
ConfigsPath string
}
func NewManager ¶
func (Manager) Read ¶
Read reads the Configs file inside the .rit home dir If configs.toml does not exist it's return a default value and error == nil:
Configs{ Language: DefaultLang, Tutorial: DefaultTutorial, Metrics: DefaultMetrics, RunType: DefaultRunType, }
in case of an error decoding the error != nil
Click to show internal directories.
Click to hide internal directories.