mycroforge/MycroForge.CLI/Commands/MycroForge.Init.Options.cs
mdnapo 02a82589ae - Refactored init & features
- Extended documentation
2024-07-14 22:27:32 +02:00

27 lines
799 B
C#

namespace MycroForge.CLI.Commands;
public partial class MycroForge
{
public partial class Init
{
public class Options
{
public string Name { get; set; } = string.Empty;
public IEnumerable<string>? Without { get; set; }
public int? ApiPort { get; set; }
public int? DbhPort { get; set; }
public int? DbuPort { get; set; }
public Features.Api.Options ApiOptions => new()
{
ApiPort = ApiPort <= 0 ? 8000 : ApiPort
};
public Features.Db.Options DbOptions => new()
{
DbhPort = DbhPort <= 0 ? 5050 : DbhPort,
DbuPort = DbuPort <= 0 ? 5051 : DbhPort
};
}
}
}