Documentation ¶
Overview ¶
The extcmd package provides a simple interface which allows an external command to be invoked with the resulting stdout/err placed into a json formatted structure for the caller. The current limitation is 8192 output lines; if more are generated by the executed command they are truncated.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cmd2strings ¶
Accept and build a command, run it writing the output into a json buffer that is returned. Currently, output response is truncated at 8192 records. If a caller needs more, then it should redirect the output and parse the file rather than reading it all into core.
Types ¶
Click to show internal directories.
Click to hide internal directories.