repl

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2018 License: MIT Imports: 18 Imported by: 7

Documentation

Overview

Package repl implements the read-eval-print-loop for the command line flux query console.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadQuery

func LoadQuery(q string) (string, error)

LoadQuery returns the Flux query q, except for two special cases: if q is exactly "-", the query will be read from stdin; and if the first character of q is "@", the @ prefix is removed and the contents of the file specified by the rest of q are returned.

Types

type Querier

type Querier interface {
	Query(ctx context.Context, compiler flux.Compiler) (flux.ResultIterator, error)
}

type REPL

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

func New

func New(q Querier) *REPL

func (*REPL) Input

func (r *REPL) Input(t string) error

func (*REPL) Run

func (r *REPL) Run()

Jump to

Keyboard shortcuts

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