Documentation ¶
Index ¶
- Constants
- func GenericCLIDevToDev(cli *genericcli.GenericCLI, opts ...genericcli.GenericDeviceOption) func(connector streamer.Connector) device.Device
- func GenericCLIWrapper(...) func(streamer.Connector) device.Device
- func InitDefaultDeviceMapping(logger *zap.Logger) map[string]func(streamer.Connector) device.Device
- func LoadYamlDeviceConfigs(content []byte) (map[string]*genericcli.GenericCLI, error)
- type Conf
- type DevConf
- type DevConfs
- type TestsConf
Constants ¶
View Source
const ( FeatureAutocmds = "autocmds" FeatureSpacesAfterEcho = "spaces_after_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 LoadYamlDeviceConfigs ¶
func LoadYamlDeviceConfigs(content []byte) (map[string]*genericcli.GenericCLI, error)
Types ¶
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)
Click to show internal directories.
Click to hide internal directories.