Доработано формирование аргументов
All checks were successful
CI / build-test (push) Successful in 29s
Release / pack-and-publish (release) Successful in 35s

This commit is contained in:
2025-11-27 10:41:57 +03:00
parent 6b17e6c067
commit 363c078321
3 changed files with 26 additions and 8 deletions

View File

@@ -40,10 +40,14 @@ internal class Program
Console.WriteLine($"Environment: {result.Value.Environment}");
Console.WriteLine($"DryRun: {result.Value.DryRun}");
Console.WriteLine($"Mode: {result.Value.Mode}");
Console.WriteLine($"Path: {result.Value.Path}");
Console.WriteLine($"Config.Author: {result.Value.Config.Author}");
Console.WriteLine($"Config.Timeout: {result.Value.Config.Timeout}");
Console.ResetColor();
Console.WriteLine("Строка аргументов:");
Console.WriteLine(ArgumentsParser.ToArguments(result.Value!, true));
return 0;
}
@@ -63,6 +67,9 @@ public class DeployOptions
[AllowedValues("dev", "staging", "prod")]
public string Environment { get; set; } = "dev";
[Option("path", null, "Среда деплоя")]
public string? Path { get; set; }
[Option("dry-run", "d", "Пробный запуск без изменений")]
public bool DryRun { get; set; }