Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultResponse ¶
type DefaultResponse struct { // Writer is where is written the command stdout Writer io.Writer // Transformers Transformers []transformer.TransformerFunc }
func NewDefaultResponse ¶ added in v0.4.0
func NewDefaultResponse(opts ...ResponseOptions) *DefaultResponse
func (*DefaultResponse) Fwriteln ¶ added in v0.4.0
func (r *DefaultResponse) Fwriteln(m interface{})
func (*DefaultResponse) Print ¶ added in v0.4.0
func (r *DefaultResponse) Print(reader io.ReadCloser) error
type ResponseOptions ¶ added in v0.4.0
type ResponseOptions func(*DefaultResponse)
ExecuteOptions is a function to set executor options
func WithTransformers ¶ added in v0.4.0
func WithTransformers(trans ...transformer.TransformerFunc) ResponseOptions
WithTransformers add trasformes
func WithWriter ¶ added in v0.4.0
func WithWriter(w io.Writer) ResponseOptions
WithWriter set the writer to be used by DefaultExecutor
Click to show internal directories.
Click to hide internal directories.