Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidObjective = errors.New("invalid objective") ErrInvalidVerb = errors.New("invalid verb") ErrNotImplemented = errors.New("not implemented") ErrGetVertex = errors.New("get vertex error") ErrGetEdge = errors.New("get edge error") ErrPutVertex = errors.New("put vertex error") ErrPutEdge = errors.New("put edge error") ErrDeleteVertex = errors.New("delete vertex error") ErrDeleteEdge = errors.New("delete edge error") ErrAddEdge = errors.New("add edge error") ErrScan = errors.New("scan error") ErrIlluminate = errors.New("illuminate error") ErrConnection = errors.New("connection error") )
Functions ¶
This section is empty.
Types ¶
type CLIService ¶
type CLIService struct {
// contains filtered or unexported fields
}
func NewCLIService ¶
func NewCLIService(client *client.Lantern) *CLIService
func (*CLIService) RunArgs ¶ added in v0.16.0
func (c *CLIService) RunArgs(ctx context.Context, args []string) error
RunArgs dispatches an already-split token stream (verb + arguments) through the same grammar the REPL parses from a raw line. The one-shot verb-first CLI commands (`lantern get vertex <key>`, …) call this with cobra's argv so the one-liner surface and the REPL share exactly one grammar and one dispatcher (#672).
Click to show internal directories.
Click to hide internal directories.