| 35 | int maxLen = 0; |
| 36 | |
| 37 | Main() { |
| 38 | tools = new TreeMap<>(); |
| 39 | for (Tool tool : new Tool[] { new CatTool(), new RecordCountTool(), new SpecificCompilerTool(), |
| 40 | new InduceSchemaTool(), new JsonToBinaryFragmentTool(), new BinaryFragmentToJsonTool(), |
| 41 | new CreateRandomFileTool(), new DataFileReadTool(), new DataFileWriteTool(), new DataFileGetMetaTool(), |
| 42 | new DataFileGetSchemaTool(), new DataFileRepairTool(), new IdlTool(), new IdlToSchemataTool(), |
| 43 | new RecodecTool(), new ConcatTool(), new RpcReceiveTool(), new RpcSendTool(), new RpcProtocolTool(), |
| 44 | new FromTextTool(), new ToTextTool(), new ToTrevniTool(), new TetherTool(), new TrevniCreateRandomTool(), |
| 45 | new TrevniMetadataTool(), new TrevniToJsonTool(), new SchemaNormalizationTool(), |
| 46 | new SchemaFingerprintTool() }) { |
| 47 | Tool prev = tools.put(tool.getName(), tool); |
| 48 | if (prev != null) { |
| 49 | throw new AssertionError("Two tools with identical names: " + tool + ", " + prev); |
| 50 | } |
| 51 | maxLen = Math.max(tool.getName().length(), maxLen); |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | public static void main(String[] args) throws Exception { |
| 56 | int rc = new Main().run(args); |