cli

package
v0.3.0-beta.6 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package cli is the Olric command line interface, a simple program that allows to send commands to Olric, and read the replies sent by the server, directly from the terminal.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLI

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

CLI defines the command line client for Olric.

func New

func New(addr, serializer, timeout string) (*CLI, error)

New returns a new CLI instance.

func (*CLI) RunCommand

func (c *CLI) RunCommand(dmap, cmd string) error

RunCommand runs the given command on dmap.

func (*CLI) WaitForCommand

func (c *CLI) WaitForCommand(dmap string) error

WaitForCommand waits for new input from stdin.

Jump to

Keyboard shortcuts

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