elvish: github.com/elves/elvish/pkg/cli/addons/instant Index | Files

package instant

import "github.com/elves/elvish/pkg/cli/addons/instant"

Package instant implements an addon that executes code whenever it changes and shows the result.

Index

Package Files

instant.go

func Start Uses

func Start(app cli.App, cfg Config)

Start starts the addon.

type Config Uses

type Config struct {
    // Keybinding.
    Binding cli.Handler
    // The function to execute code and returns the output.
    Execute func(code string) ([]string, error)
}

Config keeps the configuration for the instant addon.

Package instant imports 3 packages (graph) and is imported by 1 packages. Updated 2020-01-01. Refresh now. Tools for package owners.