cli

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LINE_UP    = "\033[1A"
	LINE_CLEAR = "\x1b[2K"

	HISTORY_FILE  = ".wsget_history"
	HISTORY_LIMIT = 100
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CLI

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

func NewCLI

func NewCLI(wsConn *ws.WSConnection) *CLI

func (*CLI) Run

func (c *CLI) Run(outputFile *os.File) error

type History

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

func NewHistory

func NewHistory(file string, limit uint) *History

func (*History) AddRequest

func (h *History) AddRequest(request string)

func (*History) GetRequst

func (h *History) GetRequst(pos int) string

func (*History) SaveToFile added in v0.1.2

func (h *History) SaveToFile() error

Jump to

Keyboard shortcuts

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