--- jsonnet.cpp 2020-09-09 12:15:33.687539042 +0000 +++ write_helper.cpp 2020-09-25 15:38:37.317147682 +0000 @@ -14,559 +14,125 @@ limitations under the License. */ -#include -#include -#include +// We need two functions defined in jsonnet.cpp file, used for writing output +// (multiple files and yaml streams) -- with minor changes (e.x. return type). -#include #include #include -#include #include -#include -#include #include -#include "utils.h" +#include "contrib/jsonnet/jsonnet_helper.h" -extern "C" { -#include -} - -#ifdef _WIN32 -const char PATH_SEP = ';'; -#else -const char PATH_SEP = ':'; -#endif - -void version(std::ostream &o) -{ - o << "Jsonnet commandline interpreter " << jsonnet_version() << std::endl; -} - -void usage(std::ostream &o) -{ - version(o); - o << "\n"; - o << "jsonnet {