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

package stub

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

Package stub implements the stub addon, a general-purpose addon that shows a modeline and supports pluggable binding.


Package Files


func Start Uses

func Start(app cli.App, cfg Config)

Start starts the stub addon.

type Config Uses

type Config struct {
    // Keybinding.
    Binding cli.Handler
    // Name to show in the modeline.
    Name string
    // Whether the addon widget gets the focus.
    Focus bool

Config keeps the configuration for the stub addon.

Package stub imports 2 packages (graph) and is imported by 1 packages. Updated 2020-02-22. Refresh now. Tools for package owners.