Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
run_command.cpp File Reference
#include <bitcoin-build-config.h>
#include <common/run_command.h>
#include <tinyformat.h>
#include <univalue.h>
#include <util/string.h>
#include <util/subprocess.h>
Include dependency graph for run_command.cpp:

Go to the source code of this file.

Functions

UniValue RunCommandParseJSON (const std::vector< std::string > &cmd_args, const std::string &str_std_in)
 Execute a command which returns JSON, and parse the result.

Function Documentation

◆ RunCommandParseJSON()

UniValue RunCommandParseJSON ( const std::vector< std::string > & cmd_args,
const std::string & str_std_in = "" )

Execute a command which returns JSON, and parse the result.

Parameters
cmd_argsThe command and arguments
str_std_instring to pass to stdin
Returns
parsed JSON

Definition at line 17 of file run_command.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: