Skip to content

domain

import "go-cli-template/internal/domain"

Index

Variables

var (
ErrInvalidRequest = errors.New("invalid request")
)

type Config

Config describes the resolved configuration.

type Config struct {
Editor string `toml:"editor"`
Primary string `toml:"primary"`
Secondary string `toml:"secondary"`
Headings string `toml:"headings"`
Text string `toml:"text"`
TextHighlight string `toml:"text_highlight"`
DescriptionHighlight string `toml:"description_highlight"`
Tags string `toml:"tags"`
Flags string `toml:"flags"`
Muted string `toml:"muted"`
Accent string `toml:"accent"`
Border string `toml:"border"`
InteractiveDefault bool `toml:"interactive_default"`
ListSpacing string `toml:"list_spacing"`
}

func DefaultConfig

func DefaultConfig() Config

DefaultConfig returns the default configuration values.

Source

See internal/domain/ for implementation details.