|
|
@ -73,9 +73,7 @@ namespace Volo.Abp.Cli.Commands |
|
|
Logger.LogInformation("UI Framework: " + uiFramework); |
|
|
Logger.LogInformation("UI Framework: " + uiFramework); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var connectionString = commandLineArgs |
|
|
var connectionString = GetConnectionString(commandLineArgs); |
|
|
.Options |
|
|
|
|
|
.GetOrNull(Options.ConnectionString.Short, Options.ConnectionString.Long); |
|
|
|
|
|
if (connectionString != null) |
|
|
if (connectionString != null) |
|
|
{ |
|
|
{ |
|
|
Logger.LogInformation("Connection string: " + connectionString); |
|
|
Logger.LogInformation("Connection string: " + connectionString); |
|
|
@ -177,6 +175,12 @@ namespace Volo.Abp.Cli.Commands |
|
|
Logger.LogInformation($"'{projectName}' has been successfully created to '{outputFolder}'"); |
|
|
Logger.LogInformation($"'{projectName}' has been successfully created to '{outputFolder}'"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static string GetConnectionString(CommandLineArgs commandLineArgs) |
|
|
|
|
|
{ |
|
|
|
|
|
var connectionString = commandLineArgs.Options.GetOrNull(Options.ConnectionString.Short, Options.ConnectionString.Long); |
|
|
|
|
|
return string.IsNullOrWhiteSpace(connectionString) ? null : connectionString; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public string GetUsageInfo() |
|
|
public string GetUsageInfo() |
|
|
{ |
|
|
{ |
|
|
var sb = new StringBuilder(); |
|
|
var sb = new StringBuilder(); |
|
|
|