config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigAsYamlString

func GetConfigAsYamlString(logger *zap.Logger) string

Types

type Config

type Config struct {
	Phony        []string          `yaml:"phony"`
	Targets      map[string]Target `yaml:"targets"`
	HelpTemplate struct {
		Enabled   bool   `yaml:"enabled"`
		Delimiter string `yaml:"delimiter"`
	} `yaml:"helpTemplate"`
	VersionTemplate struct {
		Enabled    bool   `yaml:"enabled"`
		Library    string `yaml:"library"`
		MinVersion string `yaml:"minVersion"`
	} `yaml:"versionTemplate"`
}

type ConfigManager

type ConfigManager struct {
	// contains filtered or unexported fields
}

func NewConfigManager

func NewConfigManager(logger *zap.Logger, filePath string) *ConfigManager

func (*ConfigManager) Apply

func (c *ConfigManager) Apply() error

func (*ConfigManager) Parse

func (c *ConfigManager) Parse() *ConfigManager

type SuggarString

type SuggarString struct {
	// contains filtered or unexported fields
}

type Target

type Target struct {
	HelpDescription string   `yaml:"helpDescription"`
	PreTargets      []string `yaml:"preTargets,omitempty"`
	Commands        []string `yaml:"commands"`
	Display         bool     `yaml:"display"`
}

Jump to

Keyboard shortcuts

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