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 ¶
View Source
const ( Cyan = 36 Green = 32 Magenta = 35 Red = 31 Yellow = 33 BackgroundRed = 41 )
Borrowed from https://github.com/chzyer/readline/blob/master/example/readline-pass-strength/readline-pass-strength.go
Variables ¶
View Source
var ColorResetEscape = "\033[0m"
Reset sequence
Functions ¶
func ColorEscape ¶ added in v0.4.0
ColorResetEscape translates a ANSI color number to a color escape.
Types ¶
type CLI ¶
type CLI struct {
// contains filtered or unexported fields
}
CLI defines the command line client for Olric.
func (*CLI) RunCommand ¶
RunCommand runs the given command on dmap.
func (*CLI) WaitForCommand ¶
WaitForCommand waits for new input from stdin.
Click to show internal directories.
Click to hide internal directories.