config

package
v1.0.0-rc.83 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Path string

Functions

This section is empty.

Types

type Config

type Config struct {
	Oneliners  []Oneliner                   `json:"oneliners,omitempty"`
	Extensions map[string]extensions.Config `json:"extensions,omitempty"`
	// contains filtered or unexported fields
}

func Load

func Load(configPath string) (Config, error)

func (Config) Aliases

func (cfg Config) Aliases() []string

func (Config) Save

func (c Config) Save() error

type Oneliner

type Oneliner struct {
	Title   string `json:"title,omitempty"`
	Command string `json:"command"`
	Dir     string `json:"dir,omitempty"`
	Exit    bool   `json:"exit,omitempty"`
}

Jump to

Keyboard shortcuts

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