Documentation ¶
Rendered for js/wasm
Overview ¶
Package `cmdexec` provides a facility to execute l2 commands, stream output to stdout, while also providing ability to retrieve the command output as a string.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecCommand ¶
func ExecCommand(cmdSlice []string, stdinBody string, apiDir string) (httpie.ExResponse, int64, error)
ExecCommand changes directory to the given `apiDir` and then executes the command specified in `cmdStr` During command execution, ExecCommand streams output to stdout. Once execution finishes, previous CWD is restored, and the command output is returned as a string
func GenerateChainCode ¶ added in v1.3.0
GenerateChainCode takes in an HTTP response body and comes up with some JS code to define the "magic variable" result.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.