Help us shape the future of Go! Take the 2026 Go Developer Survey

cmd

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2025 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Add cTyp = iota
	AddFeed
	Remove
	Ls
	LsItems
	Status
	Stop
	Rename
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AddFlag added in v0.0.4

type AddFlag struct {
	MustContain    string `json:"mustContain"`
	MustNotContain string `json:"mustNotContain"`
	UseRegexp      bool   `json:"useRegexp"`
	Group          string `json:"group"`
	Index          int    `json:"index"`
	FeedInfoName   string `json:"feedInfoName"`
}

type Cmd

type Cmd struct {
	Cmd cTyp            `json:"cmd"`
	Arg string          `json:"arg"`
	Raw json.RawMessage `json:"raw"`
}

type CommandCase added in v0.0.7

type CommandCase struct {
	// contains filtered or unexported fields
}

func NewCommandCase added in v0.0.7

func NewCommandCase(flag cTyp, invokeFunc func(Cmd, view.Render) (string, error)) CommandCase

type LsiFlag added in v0.0.4

type LsiFlag struct {
	SearchList bool `json:"searchList"`
}

type Selector added in v0.0.7

type Selector struct {
	// contains filtered or unexported fields
}

func NewSelector added in v0.0.7

func NewSelector(cases ...CommandCase) *Selector

func (*Selector) Select added in v0.0.7

func (sl *Selector) Select(c Cmd, r view.Render) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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