| 4 | using namespace Star; |
| 5 | |
| 6 | int main(int argc, char** argv) { |
| 7 | try { |
| 8 | if (argc != 3) { |
| 9 | coutf("Usage, {} <versioned_json_binary> <versioned_json_json>\n", argv[0]); |
| 10 | return -1; |
| 11 | } |
| 12 | |
| 13 | auto versionedJson = VersionedJson::readFile(argv[1]); |
| 14 | File::writeFile(versionedJson.toJson().printJson(2), argv[2]); |
| 15 | return 0; |
| 16 | } catch (std::exception const& e) { |
| 17 | coutf("Error! Caught exception {}\n", outputException(e, true)); |
| 18 | return 1; |
| 19 | } |
| 20 | } |
nothing calls this directly
no test coverage detected