Доработано формирование аргументов
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; }
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"profiles": {
|
||||
"Demo": {
|
||||
"commandName": "Project",
|
||||
"commandLineArgs": "--server myhost --port 8080 --env staging --mode Incremental --config \"{\\\"Author\\\":\\\"FrigaT\\\",\\\"Timeout\\\":60}"
|
||||
"commandLineArgs": "--server \"myhost\" --port 8080 --path \"C:\\Job\\Projects\\FrigaT\\ReleaseUpdater\\Updater.Test\\bin\\Debug\\net8.0\" --env staging --mode Incremental --config \"{\\\"Author\\\":\\\"FrigaT\\\",\\\"Timeout\\\":60} "
|
||||
},
|
||||
"Demo (Error)": {
|
||||
"commandName": "Project",
|
||||
|
||||
Reference in New Issue
Block a user