Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(cfg *Config, args []string)

func LoadCfg

func LoadCfg() (*cfgYaml, error)

Types

type Config

type Config struct {
	*plugins.Context `yaml:"-"`
	Vars             map[string]string `yaml:"vars,omitempty"`
	Plugins          []PluginSpec      `yaml:"plugins,omitempty"`
}

func CreateConfig

func CreateConfig() *Config

type PluginSpec

type PluginSpec struct {
	Name     string `yaml:"name"`
	Enabled  bool   `yaml:"enabled"`
	Config   string `yaml:"config,omitempty`
	Manifest string `yaml:"manifest`
}

Jump to

Keyboard shortcuts

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