matugen

package
v0.0.0-...-242ead7 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(opts Options) error

Types

type ColorMode

type ColorMode string
const (
	ColorModeDark  ColorMode = "dark"
	ColorModeLight ColorMode = "light"
)

func (*ColorMode) GTKTheme

func (c *ColorMode) GTKTheme() string

type ColorsOutput

type ColorsOutput struct {
	Colors struct {
		Dark  map[string]string `json:"dark"`
		Light map[string]string `json:"light"`
	} `json:"colors"`
}

type Options

type Options struct {
	StateDir            string
	ShellDir            string
	ConfigDir           string
	Kind                string
	Value               string
	Mode                ColorMode
	IconTheme           string
	MatugenType         string
	RunUserTemplates    bool
	StockColors         string
	SyncModeWithPortal  bool
	TerminalsAlwaysDark bool
	SkipTemplates       string
	AppChecker          utils.AppChecker
}

func (*Options) ColorsOutput

func (o *Options) ColorsOutput() string

func (*Options) ShouldSkipTemplate

func (o *Options) ShouldSkipTemplate(name string) bool

type Queue

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

func GetQueue

func GetQueue() *Queue

func (*Queue) HasPending

func (q *Queue) HasPending() bool

func (*Queue) IsRunning

func (q *Queue) IsRunning() bool

func (*Queue) Submit

func (q *Queue) Submit(opts Options) <-chan Result

type QueuedJob

type QueuedJob struct {
	Options Options
	Done    chan Result
	Ctx     context.Context
	Cancel  context.CancelFunc
}

type Result

type Result struct {
	Success bool
	Error   error
}

type TemplateCheck

type TemplateCheck struct {
	ID       string `json:"id"`
	Detected bool   `json:"detected"`
}

func CheckTemplates

func CheckTemplates(checker utils.AppChecker) []TemplateCheck

type TemplateDef

type TemplateDef struct {
	ID                 string
	Commands           []string
	Flatpaks           []string
	ConfigFile         string
	Kind               TemplateKind
	RunUnconditionally bool
}

type TemplateKind

type TemplateKind int
const (
	TemplateKindNormal TemplateKind = iota
	TemplateKindTerminal
	TemplateKindGTK
	TemplateKindVSCode
)

Jump to

Keyboard shortcuts

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