console

package
v3.0.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorColor        = gocui.NewRGBColor(255, 100, 100)
	WarcInfoColor     = gocui.NewRGBColor(100, 255, 255)
	RequestColor      = gocui.NewRGBColor(100, 255, 100)
	MetadataColor     = gocui.NewRGBColor(255, 0, 255)
	ResponseColor     = gocui.NewRGBColor(100, 150, 150)
	ResourceColor     = gocui.NewRGBColor(120, 100, 50)
	RevisitColor      = gocui.NewRGBColor(255, 255, 50)
	ContinuationColor = gocui.NewRGBColor(120, 100, 50)
	ConversionColor   = gocui.NewRGBColor(120, 100, 50)
)

Functions

func FileInfoToDirEntry

func FileInfoToDirEntry(fileInfo fs.FileInfo) fs.DirEntry

FileInfoToDirEntry returns a DirEntry that returns information from info. If info is nil, FileInfoToDirEntry returns nil.

func NewCmdConsole

func NewCmdConsole() *cobra.Command

func Run

func Run() error

Types

type ListWidget

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

func NewListWidget

func NewListWidget(name string, prev, next string,
	selectFunc func(gui *gocui.Gui, widget *ListWidget),
	populateRecordsFunc func(gui *gocui.Gui, ctx context.Context, finishedCb func(), widget *ListWidget, data interface{})) *ListWidget

func (*ListWidget) Init

func (widgetList *ListWidget) Init(gui *gocui.Gui, data interface{})

func (*ListWidget) Layout

func (widgetList *ListWidget) Layout(gui *gocui.Gui) error

type RecordWidget

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

func NewRecordWidget

func NewRecordWidget(name, prev, next string) *RecordWidget

func (*RecordWidget) Layout

func (recordWidget *RecordWidget) Layout(gui *gocui.Gui) error

type SearchEditor

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

func (*SearchEditor) Edit

func (searchEditor *SearchEditor) Edit(view *gocui.View, key gocui.Key, characterAsInteger rune, modifier gocui.Modifier)

type ShortcutHelpWidget

type ShortcutHelpWidget struct {
}

func NewShortcutHelpWidget

func NewShortcutHelpWidget() *ShortcutHelpWidget

func (*ShortcutHelpWidget) Layout

func (shortcutHelpWidget *ShortcutHelpWidget) Layout(gui *gocui.Gui) error

type State

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

func (*State) Complete

func (state *State) Complete(cmd *cobra.Command, args []string) error

Jump to

Keyboard shortcuts

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