config

package
v1.0.0-rc.74 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 8 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  []Oneliner                 `json:"oneliners,omitempty"`
	Extensions map[string]ExtensionConfig `json:"extensions,omitempty"`
}

func Load

func Load() (Config, error)

func (Config) Aliases

func (cfg Config) Aliases() []string

type ExtensionConfig

type ExtensionConfig struct {
	Origin      string            `json:"origin,omitempty"`
	Preferences types.Preferences `json:"preferences,omitempty"`
	Root        []types.RootItem  `json:"root,omitempty"`
}

func (*ExtensionConfig) UnmarshalJSON

func (e *ExtensionConfig) UnmarshalJSON(b []byte) error

type Oneliner

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

Jump to

Keyboard shortcuts

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