yaml

package
v2.2.7 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfig added in v2.2.6

func NewConfig(configFile []byte) config.Config

Types

type Config

type Config struct {
	Global       GlobalConfig        `yaml:"global"`
	WatchTargets WatchTargetsConfigs `yaml:"watchTargets"`
}

func (Config) BuildCommandSet

func (c Config) BuildCommandSet() domain.CommandSet

type GlobalConfig

type GlobalConfig struct {
	LifeCycle GlobalLifeCycleConfig `yaml:"lifeCycle"`
}

func (GlobalConfig) BuildCommandSet

func (c GlobalConfig) BuildCommandSet() domain.GlobalCommandSet

type GlobalLifeCycleConfig

type GlobalLifeCycleConfig struct {
	OnStartWatch   converter.CmdInfo `yaml:"onStartWatch"`
	OnBeforeChange converter.CmdInfo `yaml:"onBeforeChange"`
	OnAfterChange  converter.CmdInfo `yaml:"onAfterChange"`
	OnFinishWatch  converter.CmdInfo `yaml:"onFinishWatch"`
}

func (GlobalLifeCycleConfig) BuildLifeCycle

func (c GlobalLifeCycleConfig) BuildLifeCycle() domain.GlobalLifeCycle

type WatchTargetsConfig

type WatchTargetsConfig struct {
	Path      converter.Path              `yaml:"path"`
	LifeCycle WatchTargetsLifeCycleConfig `yaml:"lifeCycle"`
	Option    WatchTargetsOptionConfig    `yaml:"option"`
}

func (WatchTargetsConfig) BuildCommandSet

func (c WatchTargetsConfig) BuildCommandSet() domain.WatchTargetsCommandSet

type WatchTargetsConfigs

type WatchTargetsConfigs []WatchTargetsConfig

func (WatchTargetsConfigs) BuildCommandSets

func (cs WatchTargetsConfigs) BuildCommandSets() domain.WatchTargetsCommandSets

type WatchTargetsLifeCycleConfig

type WatchTargetsLifeCycleConfig struct {
	OnStartWatch  converter.CmdInfo `yaml:"onStartWatch"`
	OnChange      converter.CmdInfo `yaml:"onChange"`
	OnFinishWatch converter.CmdInfo `yaml:"onFinishWatch"`
}

func (WatchTargetsLifeCycleConfig) BuildLifeCycle

type WatchTargetsOptionConfig

type WatchTargetsOptionConfig struct {
	ExcludeDir      converter.Paths        `yaml:"excludeDir"`
	ExcludeSuffix   converter.PathSuffixes `yaml:"excludeSuffix"`
	WaitMillisecond converter.Millisecond  `yaml:"waitMillisecond"`
	WatchSubDir     *bool                  `yaml:"watchSubDir"`
}

func (WatchTargetsOptionConfig) BuildOption

Jump to

Keyboard shortcuts

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