cli

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2019 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(query string, opts Options)

func ExecFile

func ExecFile(pathToFile string, opts Options)

func NewLogger

func NewLogger() *lumberjack.Logger

func Repl

func Repl(version string, opts Options)

Types

type AutoCompleter added in v0.7.0

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

AutoCompleter autocompletes queries into the REPL. Implements AutoCompleter interface from github.com/chzyer/readline

func NewAutoCompleter added in v0.7.0

func NewAutoCompleter(functions []string) *AutoCompleter

func (*AutoCompleter) Do added in v0.7.0

func (ac *AutoCompleter) Do(line []rune, pos int) (newLine [][]rune, length int)

Do implements method of AutoCompleter interface

type Options

type Options struct {
	Cdp         string
	Params      map[string]interface{}
	Proxy       string
	UserAgent   string
	ShowTime    bool
	KeepCookies bool
}

func (Options) WithContext added in v0.6.0

func (opts Options) WithContext(ctx context.Context) (context.Context, context.CancelFunc)

type Timer

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

func NewTimer

func NewTimer() *Timer

func (*Timer) Print

func (t *Timer) Print() string

func (*Timer) Start

func (t *Timer) Start()

func (*Timer) Stop

func (t *Timer) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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