config

package
v0.0.0-...-28531d7 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Copyright © 2024 Josh Holbrook <josh.holbrook@gmail.com>

Index

Constants

This section is empty.

Variables

View Source
var Templates = map[string]string{
	"main.conf.tmpl":  string(mainConfTmpl),
	"start.conf.tmpl": string(startConfTmpl),
}

Functions

This section is empty.

Types

type Config

type Config struct {
	Bin              string
	ConfigHome       string
	LogLevel         string
	DosBoxBin        string
	SevenZipBin      string
	DataHome         string
	StateHome        string
	CacheHome        string
	DiskHome         string
	LinkHome         string
	PackageHome      string
	PackageStageHome string
	ArtifactHome     string
	DownloadHome     string
	Registry         string
	DiskA            string
	DiskB            string
	DiskC            string
	Editor           *tools.Editor
	Pager            *tools.Pager
}

func NewConfig

func NewConfig() *Config

func (*Config) EditEnvFile

func (conf *Config) EditEnvFile() error

func (*Config) Env

func (conf *Config) Env() map[string]string

func (*Config) EnvFileExists

func (conf *Config) EnvFileExists() bool

func (*Config) EnvFilePath

func (conf *Config) EnvFilePath() string

func (*Config) Environ

func (conf *Config) Environ() []string

func (*Config) Refresh

func (conf *Config) Refresh() error

func (*Config) Run

func (conf *Config) Run(args ...string) error

func (*Config) TaskFileExists

func (conf *Config) TaskFileExists() bool

func (*Config) TaskFilePath

func (conf *Config) TaskFilePath() string

func (*Config) WriteEnvFile

func (conf *Config) WriteEnvFile() error

func (*Config) WriteTaskFile

func (conf *Config) WriteTaskFile() error

Jump to

Keyboard shortcuts

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