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

package histlist

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

Package histlist implements the history listing addon.

Index

Package Files

histlist.go

func Start Uses

func Start(app cli.App, cfg Config)

Start starts history listing.

type Config Uses

type Config struct {
    // Binding provides key binding.
    Binding cli.Handler
    // Store provides the source of all commands.
    Store Store
    // Dedup is called to determine whether deduplication should be done.
    // Defaults to true if unset.
    Dedup func() bool
    // CaseSensitive is called to determine whether the filter should be
    // case-sensitive. Defaults to true if unset.
    CaseSensitive func() bool
}

Config contains configurations to start history listing.

type Store Uses

type Store interface {
    AllCmds() ([]store.Cmd, error)
}

Store wraps the AllCmds method. It is a subset of histutil.Store.

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