squirecfg

package
v0.0.0-...-79a7e30 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultQuiet     = false
	DefaultVerbosity = cliutil.DefaultVerbosity
)
View Source
const (
	RootConfigV1Version = 1
	RootConfigV1Schema  = "https://squire.github.io/schemas/v1/root-schema.json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	Config()
}

type LoadRootConfigV1Args

type LoadRootConfigV1Args struct {
	AppInfo appinfo.AppInfo
	Options cfgstore.Options
}

type Options

type Options struct {
	Quiet     bool
	Verbosity int
}

func NewOptions

func NewOptions(args OptionsArgs) *Options

func (*Options) Options

func (*Options) Options()

type OptionsArgs

type OptionsArgs struct {
	Quiet     *bool
	Verbosity *int
}

type RootConfigV1

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

RootConfigV1 represents the root configuration structure as defined in ADR-001

func LoadRootConfigV1

func LoadRootConfigV1(args LoadRootConfigV1Args) (_ *RootConfigV1, err error)

func NewRootConfigV1

func NewRootConfigV1() (c *RootConfigV1)

func (*RootConfigV1) Bytes

func (c *RootConfigV1) Bytes() []byte

func (*RootConfigV1) Config

func (c *RootConfigV1) Config()

func (*RootConfigV1) Merge

func (*RootConfigV1) Normalize

func (c *RootConfigV1) Normalize(cfgstore.NormalizeArgs) (err error)

func (*RootConfigV1) RootConfig

func (c *RootConfigV1) RootConfig()

func (*RootConfigV1) String

func (c *RootConfigV1) String() string