Browse Source

Merge pull request #22356 from abpframework/auto-merge/rel-9-1/3532

Merge branch dev with rel-9.1
pull/22379/head
maliming 2 years ago
committed by GitHub
parent
commit
e2204cc293
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      docs/en/studio/release-notes.md
  2. 2
      docs/en/studio/version-mapping.md
  3. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/CreateMigrationAndRunMigratorCommand.cs
  4. 12
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/HelpCommand.cs
  5. 6
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/Internal/HideFromCommandList.cs
  6. 1
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/Internal/RecreateInitialMigrationCommand.cs

4
docs/en/studio/release-notes.md

@ -2,6 +2,10 @@
This document contains **brief release notes** for each ABP Studio release. Release notes only include **major features** and **visible enhancements**. Therefore, they don't include all the development done in the related version.
## 0.9.25 (2025-03-12)
* Added ready/health check for solution runner.
## 0.9.24 (2025-03-11)
* Added automatic installation of necessary dependencies.

2
docs/en/studio/version-mapping.md

@ -4,7 +4,7 @@ This document provides a general overview of the relationship between various ve
| **ABP Studio Version** | **ABP Version of Startup Template** |
|------------------------|---------------------------|
| 0.9.24 | 9.1.0 |
| 0.9.24 - 0.9.25 | 9.1.0 |
| 0.9.22 - 0.9.23 | 9.0.4 |
| 0.9.20 - 0.9.21 | 9.0.3 |
| 0.9.17 to 0.9.19 | 9.0.2 |

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

@ -5,12 +5,14 @@ using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
using Volo.Abp.Cli.Args;
using Volo.Abp.Cli.Commands.Internal;
using Volo.Abp.Cli.Commands.Services;
using Volo.Abp.Cli.Utils;
using Volo.Abp.DependencyInjection;
namespace Volo.Abp.Cli.Commands;
[HideFromCommandList]
public class CreateMigrationAndRunMigratorCommand : IConsoleCommand, ITransientDependency
{
private readonly InitialMigrationCreator _initialMigrationCreator;

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

@ -1,4 +1,6 @@
using System.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
@ -7,6 +9,7 @@ using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
using Microsoft.Extensions.Options;
using Volo.Abp.Cli.Args;
using Volo.Abp.Cli.Commands.Internal;
using Volo.Abp.DependencyInjection;
namespace Volo.Abp.Cli.Commands;
@ -65,7 +68,7 @@ public class HelpCommand : IConsoleCommand, ITransientDependency
sb.AppendLine("Command List:");
sb.AppendLine("");
foreach (var command in AbpCliOptions.Commands.ToArray())
foreach (var command in AbpCliOptions.Commands.ToArray().Where(NotHiddenFromCommandList))
{
var method = command.Value.GetMethod("GetShortDescription", BindingFlags.Static | BindingFlags.Public);
if (method == null)
@ -92,6 +95,11 @@ public class HelpCommand : IConsoleCommand, ITransientDependency
return sb.ToString();
}
private bool NotHiddenFromCommandList(KeyValuePair<string, Type> command)
{
return command.Value.GetCustomAttribute(typeof(HideFromCommandList)) == null;
}
public static string GetShortDescription()
{
return "Show command line help. Write ` abp help <command> `";

6
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/Internal/HideFromCommandList.cs

@ -0,0 +1,6 @@
using System;
namespace Volo.Abp.Cli.Commands.Internal;
public class HideFromCommandList : Attribute
{}

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

@ -9,6 +9,7 @@ using Volo.Abp.DependencyInjection;
namespace Volo.Abp.Cli.Commands.Internal;
[HideFromCommandList]
public class RecreateInitialMigrationCommand : IConsoleCommand, ITransientDependency
{
public const string Name = "recreate-initial-migration";

Loading…
Cancel
Save