config

package
v0.0.0-...-aebc6d4 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Name     string `hcl:"name,label"`
	Pattern  string `hcl:"pattern"`
	Template string `hcl:"template"`
	Regex    bool   `hcl:"regex,optional"`
}

type Config

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

func Load

func Load(path string, options ...Option) (*Config, error)

func (Config) Aliases

func (c Config) Aliases() *actions.Aliases

func (Config) Echo

func (c Config) Echo() bool

func (Config) Prefix

func (c Config) Prefix() string

type Option

type Option interface {
	// contains filtered or unexported methods
}

func OptAfs

func OptAfs(afs afero.Fs) Option

func OptCommandPrefix

func OptCommandPrefix(prefix string) Option

func OptNoEcho

func OptNoEcho() Option

Jump to

Keyboard shortcuts

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