config

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ShellToUse = "/bin/sh"

TODO: make this a config flag

Variables

This section is empty.

Functions

func ReadConfig

func ReadConfig(configPath string) (*map[string][]AppConfig, error)

Types

type AppConfig

type AppConfig struct {
	Source         string `yaml:"source" omitempty`
	Destination    string `yaml:"destination" omitempty`
	Run            string `yaml:"run" omitempty`
	RunInteractive string `yaml:"run_interactive" omitempty`
	IfOS           string `yaml:"if_os" omitempty`
}
func (obj AppConfig) Link() (*string, *string, error)

Jump to

Keyboard shortcuts

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