public static void Main(string[] args) { var pathToAppData = ProgramUtils.GetPathToAppData(); var metadataSrv = pathToAppData.GetJsonFromAppDataAs <MetadataCli.Metadata>("metadata_srv.json"); var metadataCliOperations = pathToAppData.GetJsonFromAppDataAs <MetadataCli.Metadata>("metadata_cli_operations.json"); var metadataCliFull = Generator.GenerateMetadataCliFull(metadataSrv, metadataCliOperations); var metadataCli = Generator.GenerateMetadataCli(metadataCliFull); var pathToGenerated = ProgramUtils.GetPathToGenerated(); metadataCliFull.WritePrettyJson(pathToGenerated, "metadata_cli_full.json"); metadataCli.WritePrettyJson(pathToGenerated, "metadata_cli.json"); Console.WriteLine(); Console.WriteLine("Done! Press any key to continue ..."); Console.ReadLine(); }