instant

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2021 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(app cli.App, cfg Config)

Start starts the addon.

Types

type Config

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.

Jump to

Keyboard shortcuts

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