config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultName = "devctl"
	DefaultExt  = ".yml"
	DefaultFile = DefaultName + DefaultExt
)

Variables

View Source
var Empty = &Config{}

Functions

func Init

func Init(dir work.Directory) error

func Viper added in v0.3.0

func Viper(dir work.Directory) *viper.Viper

Types

type Config

type Config struct {
	Tools map[string]tool.Config `json:"tools,omitempty"`
}

func FromDirectory added in v0.3.0

func FromDirectory(dir work.Directory) (*Config, error)

func Unmarshal added in v0.3.0

func Unmarshal(viper *viper.Viper) (*Config, error)

type NotFoundError added in v0.3.0

type NotFoundError = viper.ConfigFileNotFoundError

type Option

type Option func(*Options)

type Options

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

Jump to

Keyboard shortcuts

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