11 lines
354 B
C#
11 lines
354 B
C#
|
|
using CommandLine;
|
||
|
|
|
||
|
|
await Parser.Default.ParseArguments<Options>(args).WithParsedAsync(async options =>
|
||
|
|
{
|
||
|
|
// Generate CMS schema
|
||
|
|
var jsonSchemaGenerator = new UmbracoJsonSchemaGenerator();
|
||
|
|
var jsonSchema = jsonSchemaGenerator.Generate(typeof(UmbracoCmsSchema));
|
||
|
|
|
||
|
|
await File.WriteAllTextAsync(options.OutputFile, jsonSchema.ToJson());
|
||
|
|
});
|