devconf

package
v1.0.83 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: MIT Imports: 21 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	FeatureAutocmds        = "autocmds"
	FeatureSpacesAfterEcho = "spaces_after_echo"
	FeatureExtraCrEcho     = "extra_cr_echo"
)

Variables

This section is empty.

Functions

func GenericCLIDevToDev

func GenericCLIDevToDev(cli *genericcli.GenericCLI, opts ...genericcli.GenericDeviceOption) func(connector streamer.Connector) device.Device

func GenericCLIWrapper

func GenericCLIWrapper(cliFn func(connector streamer.Connector, opts ...genericcli.GenericDeviceOption) genericcli.GenericDevice, logger *zap.Logger) func(streamer.Connector) device.Device

func GetEmbeddedDeviceTypeList added in v1.0.78

func GetEmbeddedDeviceTypeList() string

func InitDefaultDeviceMapping

func InitDefaultDeviceMapping(logger *zap.Logger) map[string]func(streamer.Connector) device.Device

func InitDeviceMapping added in v1.0.78

func InitDeviceMapping(logger *zap.Logger, deviceFilePath string) (map[string]func(streamer.Connector) device.Device, error)

Types

type Conf

type Conf struct {
	Devices DevConfs `yaml:"devices"`
}

func LoadExternalDeviceConfig added in v1.0.78

func LoadExternalDeviceConfig(path string) (*Conf, error)

func NewConf

func NewConf() *Conf

type DevConf

type DevConf struct {
	Name               string        `yaml:"name"`
	PromptExpression   string        `yaml:"prompt_expression"`
	ErrorExpression    string        `yaml:"error_expression"`
	PagerExpression    string        `yaml:"pager_expression"`
	QuestionExpression string        `yaml:"question_expression"`
	Features           []interface{} `yaml:"features"`
	Tests              TestsConf     `yaml:"tests"`
}

func (DevConf) Make

func (m DevConf) Make() (*genericcli.GenericCLI, error)

type DevConfs

type DevConfs []DevConf

func (DevConfs) Make

func (m DevConfs) Make() (map[string]*genericcli.GenericCLI, error)

type TestsConf

type TestsConf struct {
	PromptExpressionVariants []string `yaml:"prompt_expression_variants"`
	ErrorExpressionVariants  []string `yaml:"error_expression_variants"`
	PagerExpressionVariants  []string `yaml:"pager_expression_variants"`
}

Jump to

Keyboard shortcuts

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