package config

import "github.com/igorhub/devcard/pkg/internal/config"

Index

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
}

Source Files

config.go css.go

Version
v0.12.0 (latest)
Published
Jun 15, 2025
Platform
linux/amd64
Imports
13 packages
Last checked
2 days ago

Tools for package owners.