cfg

package
v0.0.0-...-9aed8fb Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package cfg represents the overall wem application configuration.

Index

Constants

View Source
const WemName = "wem"

Variables

View Source
var WemVersion string = "0.0.0--DEV"

Functions

func CfgDir

func CfgDir() string

Types

type WemConfig

type WemConfig struct {
	CacheDir     string
	GeWineDir    string
	WineBuildDir string
	WineEnvDir   string
	WineSrcDir   string
}

func GetConfig

func GetConfig() (*WemConfig, error)

func (*WemConfig) ApplyArgs

func (w *WemConfig) ApplyArgs(cacheDir, protonDir, wineBuildDir, wineEnvDir, wineSrcDir string)

func (*WemConfig) AsToml

func (w *WemConfig) AsToml() (string, error)

func (*WemConfig) EnsureDirs

func (w *WemConfig) EnsureDirs() error

EnsureDirs ensures that all dirs defined in the config exist, creating them as needed.

func (*WemConfig) Validate

func (w *WemConfig) Validate() error

Validate indicates if there are any missing config options.

Jump to

Keyboard shortcuts

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