handlers

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exit

func Exit()

func LoadConfig

func LoadConfig(config *Config)

func Substitute

func Substitute(value string, tokens map[string]string) string

Types

type Config

type Config struct {
	Prompt   string `yaml:"prompt"`
	Default  string `yaml:"default"`
	Commands []struct {
		Command   string `yaml:"command"`
		Response  string `yaml:"response"`
		Color     string `yaml:"color"`
		Delay     int    `yaml:"delay"`
		Responses []struct {
			Response string `yaml:"response"`
			Color    string `yaml:"color"`
			Delay    int    `yaml:"delay"`
		} `yaml:"responses"`
	} `yaml:"commands"`
}

Jump to

Keyboard shortcuts

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