lunch

package
v0.0.0-...-b8d31d5 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2021 License: MIT Imports: 32 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Date

func Date(ctx Context, args []string) error

func ElvishPrompt

func ElvishPrompt(ctx Context, args []string) error

func ElvishRunScript

func ElvishRunScript(ctx context.Context, args []string) ([]string, error)

func ElvishScript

func ElvishScript(ctx Context, args []string) error

func GetNames

func GetNames() []string

func HTTP

func HTTP(ctx Context, args []string) error

func HTTPx

func HTTPx(args []string) error

func JQ

func JQ(ctx Context, args []string) error

func JSON

func JSON(ctx Context, args []string) error

deprecated. see JQ

func Register

func Register(name string, meal Lunch)

func XbarPlugin

func XbarPlugin(ctx Context, args []string) error

Types

type Context

type Context struct {
	Ctx context.Context
	In  *os.File
	Out *os.File
	Err *os.File
}

type Lunch

type Lunch func(ctx Context, args []string) error

func Get

func Get(name string) (Lunch, bool)

Jump to

Keyboard shortcuts

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