config

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Path string
	Data []byte
	Err  error

	Port int

	Editor string
	Opener string `toml:"custom-opener"`

	Projects []ProjectConfig

	Appearance struct {
		Stylesheets      []string
		CodeHighlighting string `toml:"code-highlighting"`
	}
}

func LoadConfig

func LoadConfig() Config

func (Config) CSS

func (cfg Config) CSS() string

func (*Config) Create

func (cfg *Config) Create() error

type ProjectConfig

type ProjectConfig struct {
	Name       string
	Dir        string
	Injection  string
	Generators map[string][]string
}

Jump to

Keyboard shortcuts

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