custom

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CustomCommandPath = filepath.Join(utils.GetHomeDir(), ".config/ganyu/custom.json")

Functions

func RunCustom added in v0.1.2

func RunCustom(cmd Custom) error

Types

type Custom

type Custom struct {
	Desc string   `json:"desc"`
	Name string   `json:"name"`
	Root bool     `json:"root"`
	Cmd  string   `json:"cmd"`
	Args []string `json:"args"`
}

func FindCustom added in v0.1.2

func FindCustom(name string, commands []Custom) (Custom, bool)

func ReadCustom

func ReadCustom(path string) ([]Custom, error)

Jump to

Keyboard shortcuts

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