prompt

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: BSD-3-Clause Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Forest

type Forest interface {
	Tree
	FindBranch(path string) ([]*leaf, error)
}

type Option

type Option func(Prompt) error

func Node

func Node(n peer.Node) Option

func Scanner

func Scanner(sh ScannerHandler) Option

type Prompt

type Prompt interface {
	Run(...Option) error
	Done()
	Context() context.Context
	Node() peer.Node
	AuthClient() auth.Client
	SeerClient() seer.Client
	PatrickClient() patrick.Client
	HoarderClient() hoarder.Client
	MonkeyClient() monkey.Client
	TnsClient() tns.Client
	CurrentPath() string
	SetPath(string)
}

func New

func New(ctx context.Context) (Prompt, error)

type ScannerHandler

type ScannerHandler func(context.Context, peer.Node) error

type Tree

type Tree interface {
	Complete(Prompt, goPrompt.Document) []goPrompt.Suggest
	Execute(p Prompt, args []string) error
}

Jump to

Keyboard shortcuts

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