Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommand ¶
NewCommand returns a Command from an oldcmds.Command
func OldContext ¶
OldContext tries to cast the environment as a legacy command context, returning nil on failure.
Types ¶
type MarshalerEncoder ¶
type MarshalerEncoder struct {
// contains filtered or unexported fields
}
MarshalerEncoder implements Encoder from a Marshaler
func NewMarshalerEncoder ¶
func NewMarshalerEncoder(req *cmds.Request, m oldcmds.Marshaler, w io.Writer) *MarshalerEncoder
NewMarshalerEncoder returns a new MarshalerEncoder
func (*MarshalerEncoder) Encode ¶
func (me *MarshalerEncoder) Encode(v interface{}) error
Encode encodes v onto the io.Writer w using Marshaler m, with both m and w passed in NewMarshalerEncoder
Click to show internal directories.
Click to hide internal directories.