command

package
v0.0.0-...-bf845eb Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface {
	Execute(s types.Session) error
}

Command is an interface for all commands to follow

func FindCommand

func FindCommand(input string) (Command, error)

FindCommand finds a command for a given input

type Exit

type Exit struct{}

Exit exits the shell

func (Exit) Execute

func (c Exit) Execute(s types.Session) error

Execute implements the Command interface

type Help

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

Help prints out explanations for various commands

func (Help) Execute

func (c Help) Execute(s types.Session) error

Execute implements the Command interface

type Ls

type Ls struct{}

Ls lists fields for the current node

func (Ls) Execute

func (c Ls) Execute(s types.Session) error

Execute implements the Command interface

type On

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

On scopes the query with an inline fragment for a concrete type

func (On) Execute

func (o On) Execute(s types.Session) error

Execute implements the Command interface

type Pp

type Pp struct{}

Pp shows present node path

func (Pp) Execute

func (c Pp) Execute(s types.Session) error

Execute implements the Command interface

type Pq

type Pq struct{}

Pq shows present node path's query

func (Pq) Execute

func (c Pq) Execute(s types.Session) error

Execute implements the Command interface

type Query

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

Query executes a GraphQL query

func (Query) Execute

func (c Query) Execute(s types.Session) error

Execute implements the Command interface

type Traverse

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

Traverse traverses nodes

func (Traverse) Execute

func (c Traverse) Execute(s types.Session) error

Execute implements the Command interface

type Up

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

Up traverses up one node

func (Up) Execute

func (c Up) Execute(s types.Session) error

Execute implements the Command interface

Jump to

Keyboard shortcuts

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