Browse Source

Update SuiteCommand.cs

pull/2398/head
Alper Ebicoglu 7 years ago
parent
commit
4664b63b99
  1. 20
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/SuiteCommand.cs

20
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/SuiteCommand.cs

@ -42,19 +42,19 @@ namespace Volo.Abp.Cli.Commands
case "install": case "install":
case "i": case "i":
Logger.LogInformation("Installing Suite..."); Logger.LogInformation("Installing ABP Suite...");
await InstallSuiteAsync(); await InstallSuiteAsync();
break; break;
case "update": case "update":
case "u": case "u":
Logger.LogInformation("Updating Suite..."); Logger.LogInformation("Updating ABP Suite...");
await UpdateSuiteAsync(); await UpdateSuiteAsync();
break; break;
case "remove": case "remove":
case "r": case "r":
Logger.LogInformation("Removing Suite..."); Logger.LogInformation("Removing ABP Suite...");
RemoveSuite(); RemoveSuite();
break; break;
} }
@ -67,7 +67,7 @@ namespace Volo.Abp.Cli.Commands
if (result == 0) if (result == 0)
{ {
Logger.LogInformation("Suite has been successfully installed."); Logger.LogInformation("ABP Suite has been successfully installed.");
Logger.LogInformation("You can run it with the CLI command \"abp suite\""); Logger.LogInformation("You can run it with the CLI command \"abp suite\"");
} }
} }
@ -89,13 +89,13 @@ namespace Volo.Abp.Cli.Commands
{ {
if (!GlobalToolHelper.IsGlobalToolInstalled("abp-suite")) if (!GlobalToolHelper.IsGlobalToolInstalled("abp-suite"))
{ {
Logger.LogWarning("Suite is not installed! To install it you can run the command: \"abp suite install\""); Logger.LogWarning("ABP Suite is not installed! To install it you can run the command: \"abp suite install\"");
return; return;
} }
} }
catch (Exception ex) catch (Exception ex)
{ {
Logger.LogWarning("Couldn't check Suite installed status: " + ex.Message); Logger.LogWarning("Couldn't check ABP Suite installed status: " + ex.Message);
} }
CmdHelper.RunCmd("abp-suite"); CmdHelper.RunCmd("abp-suite");
@ -129,10 +129,10 @@ namespace Volo.Abp.Cli.Commands
sb.AppendLine(""); sb.AppendLine("");
sb.AppendLine("Options:"); sb.AppendLine("Options:");
sb.AppendLine(""); sb.AppendLine("");
sb.AppendLine("<no argument> (runs Suite)"); sb.AppendLine("<no argument> (run ABP Suite)");
sb.AppendLine("-i|--install (installs Suite as a dotnet global tool)"); sb.AppendLine("-i|--install (install ABP Suite as a dotnet global tool)");
sb.AppendLine("-u|--update (updates Suite to the latest)"); sb.AppendLine("-u|--update (update ABP Suite to the latest)");
sb.AppendLine("-r|--remove (uninstalls Suite)"); sb.AppendLine("-r|--remove (uninstall ABP Suite)");
sb.AppendLine(""); sb.AppendLine("");
sb.AppendLine("Examples:"); sb.AppendLine("Examples:");
sb.AppendLine(""); sb.AppendLine("");

Loading…
Cancel
Save