config

package
v1.0.0-rc.81 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Path

func Path() string

Types

type Config

type Config struct {
	Schema     string                       `json:"$schema,omitempty"`
	Oneliners  map[string]Oneliner          `json:"oneliners,omitempty"`
	Extensions map[string]extensions.Config `json:"extensions,omitempty"`
}

func Load

func Load() (Config, error)

func (Config) Aliases

func (cfg Config) Aliases() []string

type Oneliner

type Oneliner struct {
	Command string `json:"command"`
	Cwd     string `json:"cwd"`
	Exit    bool   `json:"exit"`
}

func (*Oneliner) UnmarshalJSON

func (o *Oneliner) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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