Import from internal git

This commit is contained in:
2025-10-11 13:08:09 +02:00
commit 97aaa715dc
175 changed files with 7014 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
using Core.Dto;
using Core.SpecConfig;
namespace Core;
public class ArgumentsExtractor
{
private ArgumentsDto _args;
public GenerationType? GenType =>
_args.ClientOnly ? GenerationType.Client :
_args.ModelsOnly ? GenerationType.Common :
_args.ApiOnly ? GenerationType.Server :
null;
public PublishType PublishType =>
_args.SafePublish ? PublishType.Safe :
_args.ForcePublish ? PublishType.Force :
PublishType.No;
public string Spec => _args.SpecName;
public bool ExportPuml => _args.ExportPuml;
public ArgumentsExtractor(ArgumentsDto args)
{
_args = args;
}
}