Доработано формирование аргументов
This commit is contained in:
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user