Browse Source

Merge pull request #20862 from abpframework/auto-merge/rel-8-3/3012

Merge branch dev with rel-8.3
pull/20879/head
maliming 2 years ago
committed by GitHub
parent
commit
397e018964
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/AddModuleCommand.cs
  2. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/AddPackageCommand.cs
  3. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/BuildCommand.cs
  4. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/BundleCommand.cs
  5. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/CleanCommand.cs
  6. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/ClearDownloadCacheCommand.cs
  7. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/CliCommand.cs
  8. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/CreateMigrationAndRunMigratorCommand.cs
  9. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/GenerateProxyCommand.cs
  10. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/GetSourceCommand.cs
  11. 13
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/HelpCommand.cs
  12. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/IConsoleCommand.cs
  13. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/InstallLibsCommand.cs
  14. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/Internal/RecreateInitialMigrationCommand.cs
  15. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/ListModulesCommand.cs
  16. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/ListTemplatesCommand.cs
  17. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/LoginCommand.cs
  18. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/LoginInfoCommand.cs
  19. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/LogoutCommand.cs
  20. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/NewCommand.cs
  21. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/PromptCommand.cs
  22. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/ProxyCommandBase.cs
  23. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/RemoveProxyCommand.cs
  24. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/SuiteCommand.cs
  25. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/SwitchToLocalCommand.cs
  26. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/SwitchToNightlyCommand.cs
  27. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/SwitchToPreRcCommand.cs
  28. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/SwitchToPreviewCommand.cs
  29. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/SwitchToStableCommand.cs
  30. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/TranslateCommand.cs
  31. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/UpdateCommand.cs

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/AddModuleCommand.cs

@ -144,7 +144,7 @@ public class AddModuleCommand : IConsoleCommand, ITransientDependency
return sb.ToString();
}
public string GetShortDescription()
public static string GetShortDescription()
{
return "Add a multi-package module to a solution by finding all packages of the module, " +
"finding related projects in the solution and adding each package to the corresponding project in the solution.";

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/AddPackageCommand.cs

@ -110,7 +110,7 @@ public class AddPackageCommand : IConsoleCommand, ITransientDependency
return sb.ToString();
}
public string GetShortDescription()
public static string GetShortDescription()
{
return "Add a new ABP package to a project by adding related NuGet package dependencies and [DependsOn(...)] attributes.";
}

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/BuildCommand.cs

@ -108,7 +108,7 @@ public class BuildCommand : IConsoleCommand, ITransientDependency
return sb.ToString();
}
public string GetShortDescription()
public static string GetShortDescription()
{
return "Builds a dotnet repository and dependent repositories or a solution.";
}

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/BundleCommand.cs

@ -45,7 +45,7 @@ public class BundleCommand : IConsoleCommand, ITransientDependency
await BundlingService.BundleAsync(workingDirectory, forceBuild, projectType);
}
public string GetShortDescription()
public static string GetShortDescription()
{
return "Bundles all third party styles and scripts required by modules and updates index.html file.";
}

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/CleanCommand.cs

@ -57,7 +57,7 @@ public class CleanCommand : IConsoleCommand, ITransientDependency
return sb.ToString();
}
public string GetShortDescription()
public static string GetShortDescription()
{
return "Delete all BIN and OBJ folders in current folder.";
}

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/ClearDownloadCacheCommand.cs

@ -52,7 +52,7 @@ public class ClearDownloadCacheCommand : IConsoleCommand, ITransientDependency
return sb.ToString();
}
public string GetShortDescription()
public static string GetShortDescription()
{
return "Clears the templates download cache.";
}

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/CliCommand.cs

@ -150,7 +150,7 @@ public class CliCommand : IConsoleCommand, ITransientDependency
return sb.ToString();
}
public string GetShortDescription()
public static string GetShortDescription()
{
return "Update or remove ABP CLI. See https://abp.io/docs/latest/cli";
}

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/CreateMigrationAndRunMigratorCommand.cs

@ -85,7 +85,7 @@ public class CreateMigrationAndRunMigratorCommand : IConsoleCommand, ITransientD
return string.Empty;
}
public string GetShortDescription()
public static string GetShortDescription()
{
return string.Empty;
}

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/GenerateProxyCommand.cs

@ -34,7 +34,7 @@ public class GenerateProxyCommand : ProxyCommandBase<GenerateProxyCommand>
return sb.ToString();
}
public override string GetShortDescription()
public static string GetShortDescription()
{
return "Generates client service proxies and DTOs to consume HTTP APIs.";
}

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/GetSourceCommand.cs

@ -105,7 +105,7 @@ public class GetSourceCommand : IConsoleCommand, ITransientDependency
return sb.ToString();
}
public string GetShortDescription()
public static string GetShortDescription()
{
return "Download the source code of the specified module.";
}

13
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/HelpCommand.cs

@ -1,4 +1,5 @@
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
@ -66,13 +67,13 @@ public class HelpCommand : IConsoleCommand, ITransientDependency
foreach (var command in AbpCliOptions.Commands.ToArray())
{
string shortDescription;
using (var scope = ServiceScopeFactory.CreateScope())
var method = command.Value.GetMethod("GetShortDescription", BindingFlags.Static | BindingFlags.Public);
if (method == null)
{
shortDescription = ((IConsoleCommand)scope.ServiceProvider
.GetRequiredService(command.Value)).GetShortDescription();
continue;
}
var shortDescription = (string) method.Invoke(null, null);
sb.Append(" > ");
sb.Append(command.Key);
@ -91,7 +92,7 @@ public class HelpCommand : IConsoleCommand, ITransientDependency
return sb.ToString();
}
public string GetShortDescription()
public static string GetShortDescription()
{
return "Show command line help. Write ` abp help <command> `";
}

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/IConsoleCommand.cs

@ -8,6 +8,4 @@ public interface IConsoleCommand
Task ExecuteAsync(CommandLineArgs commandLineArgs);
string GetUsageInfo();
string GetShortDescription();
}

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/InstallLibsCommand.cs

@ -63,7 +63,7 @@ public class InstallLibsCommand : IConsoleCommand, ITransientDependency
return sb.ToString();
}
public string GetShortDescription()
public static string GetShortDescription()
{
return "Install NPM Packages for MVC / Razor Pages and Blazor Server UI types.";
}

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/Internal/RecreateInitialMigrationCommand.cs

@ -82,7 +82,7 @@ public class RecreateInitialMigrationCommand : IConsoleCommand, ITransientDepend
return GetShortDescription();
}
public string GetShortDescription()
public static string GetShortDescription()
{
return "This is a internal command. Please run 'abp recreate-initial-migration' command in abp or volo root directory.";
}

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/ListModulesCommand.cs

@ -72,7 +72,7 @@ public class ListModulesCommand : IConsoleCommand, ITransientDependency
return sb.ToString();
}
public string GetShortDescription()
public static string GetShortDescription()
{
return "List open source application modules";
}

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/ListTemplatesCommand.cs

@ -99,7 +99,7 @@ public class ListTemplatesCommand : IConsoleCommand, ITransientDependency
return sb.ToString();
}
public string GetShortDescription()
public static string GetShortDescription()
{
return "Lists available templates to be created.";
}

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/LoginCommand.cs

@ -188,7 +188,7 @@ public class LoginCommand : IConsoleCommand, ITransientDependency
return sb.ToString();
}
public string GetShortDescription()
public static string GetShortDescription()
{
return "Sign in to " + CliUrls.AccountAbpIo + ".";
}

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/LoginInfoCommand.cs

@ -62,7 +62,7 @@ public class LoginInfoCommand : IConsoleCommand, ITransientDependency
return sb.ToString();
}
public string GetShortDescription()
public static string GetShortDescription()
{
return "Show your login info.";
}

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/LogoutCommand.cs

@ -31,7 +31,7 @@ public class LogoutCommand : IConsoleCommand, ITransientDependency
return string.Empty;
}
public string GetShortDescription()
public static string GetShortDescription()
{
return "Sign out from " + CliUrls.AccountAbpIo + ".";
}

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/NewCommand.cs

@ -237,7 +237,7 @@ public class NewCommand : ProjectCreationCommandBase, IConsoleCommand, ITransien
return sb.ToString();
}
public string GetShortDescription()
public static string GetShortDescription()
{
return "Generate a new solution based on the ABP startup templates.";
}

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/PromptCommand.cs

@ -27,7 +27,7 @@ public class PromptCommand : IConsoleCommand, ITransientDependency
return sb.ToString();
}
public string GetShortDescription()
public static string GetShortDescription()
{
return "Starts with prompt mode.";
}

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/ProxyCommandBase.cs

@ -119,8 +119,6 @@ public abstract class ProxyCommandBase<T> : IConsoleCommand, ITransientDependenc
return sb.ToString();
}
public abstract string GetShortDescription();
public static class Options
{
public static class Module

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/RemoveProxyCommand.cs

@ -33,7 +33,7 @@ public class RemoveProxyCommand : ProxyCommandBase<RemoveProxyCommand>
return sb.ToString();
}
public override string GetShortDescription()
public static string GetShortDescription()
{
return "Remove client service proxies and DTOs to consume HTTP APIs.";
}

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

@ -576,7 +576,7 @@ public class SuiteCommand : IConsoleCommand, ITransientDependency
return sb.ToString();
}
public string GetShortDescription()
public static string GetShortDescription()
{
return "Install, update, remove or start ABP Suite. See https://abp.io/suite.";
}

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/SwitchToLocalCommand.cs

@ -78,7 +78,7 @@ public class SwitchToLocal : IConsoleCommand, ITransientDependency
return path;
}
public string GetShortDescription()
public static string GetShortDescription()
{
return "Changes all NuGet package references to local project references for all the .csproj files in the specified folder" +
" (and all its subfolders with any deep)";

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/SwitchToNightlyCommand.cs

@ -38,7 +38,7 @@ public class SwitchToNightlyCommand : IConsoleCommand, ITransientDependency
return sb.ToString();
}
public string GetShortDescription()
public static string GetShortDescription()
{
return "Switches packages to nightly preview ABP version.";
}

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/SwitchToPreRcCommand.cs

@ -38,7 +38,7 @@ public class SwitchToPreRcCommand : IConsoleCommand, ITransientDependency
return sb.ToString();
}
public string GetShortDescription()
public static string GetShortDescription()
{
return "Switches npm packages to pre-rc ABP version.";
}

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/SwitchToPreviewCommand.cs

@ -38,7 +38,7 @@ public class SwitchToPreviewCommand : IConsoleCommand, ITransientDependency
return sb.ToString();
}
public string GetShortDescription()
public static string GetShortDescription()
{
return "Switches packages to preview ABP version.";
}

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/SwitchToStableCommand.cs

@ -38,7 +38,7 @@ public class SwitchToStableCommand : IConsoleCommand, ITransientDependency
return sb.ToString();
}
public string GetShortDescription()
public static string GetShortDescription()
{
return "Switches packages to stable ABP version from preview version.";
}

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/TranslateCommand.cs

@ -555,7 +555,7 @@ public class TranslateCommand : IConsoleCommand, ITransientDependency
return sb.ToString();
}
public string GetShortDescription()
public static string GetShortDescription()
{
return "Mainly used to translate ABP's resources (JSON files) easier.";
}

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/UpdateCommand.cs

@ -132,7 +132,7 @@ public class UpdateCommand : IConsoleCommand, ITransientDependency
return sb.ToString();
}
public string GetShortDescription()
public static string GetShortDescription()
{
return "Update all ABP related NuGet packages and NPM packages in a solution or project to the latest version.";
}

Loading…
Cancel
Save