Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommand ¶
func NewCommand(oldcmd *oldcmds.Command) *cmds.Command
NewCommand returns a Command from an oldcmds.Command
func OldContext ¶
func OldContext(env interface{}) *oldcmds.Context
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
Click to show internal directories.
Click to hide internal directories.