Documentation ¶
Index ¶
- func Client(ctx cli.Context) error
- func ConnPipe(conn net.Conn) channel.Pipe[[]byte]
- type Command
- type Commands
- type Context
- func (c *Context) Close()
- func (c *Context) Error(err error) bool
- func (c *Context) Input(prompt string, v interface{}) bool
- func (c *Context) PopulateStruct(cmd string, s interface{}) bool
- func (c *Context) Printf(format string, a ...interface{}) (int, error)
- func (c *Context) Read() string
- func (c *Context) String() string
- func (c *Context) Write(b []byte) (int, error)
- func (c *Context) WriteString(str string) (int, error)
- type RunnerInitilizer
- type Socket
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Commands ¶
type Commands struct { Addr string Name string Commands []Command StartMessage string // contains filtered or unexported fields }
Commands is used to setup and run the server side of a unix socket connection.
type Context ¶
Context is passed into a Command
func (*Context) Close ¶
func (c *Context) Close()
Close will cause the client end of the socket to close
func (*Context) Error ¶
Error will print an error if there is one. Returns a bool indicating if there was an error.
func (*Context) Input ¶
Input provides a prompt and populates a value. Currently supports string or int.
func (*Context) PopulateStruct ¶
PopulateStruct will provide a prompt for each field
type RunnerInitilizer ¶
Click to show internal directories.
Click to hide internal directories.