Browse Source

Add UsageInfo

pull/9905/head
liangshiwei 5 years ago
parent
commit
3c436c2edf
  1. 17
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/RemoveProxyCommand.cs

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

@ -1,4 +1,5 @@
using Microsoft.Extensions.Options;
using System.Text;
using Microsoft.Extensions.Options;
using Volo.Abp.Cli.ServiceProxy;
using Volo.Abp.DependencyInjection;
@ -17,6 +18,20 @@ namespace Volo.Abp.Cli.Commands
{
}
public override string GetUsageInfo()
{
var sb = new StringBuilder(base.GetUsageInfo());
sb.AppendLine("");
sb.AppendLine("Examples:");
sb.AppendLine("");
sb.AppendLine(" abp remove-proxy -t ng");
sb.AppendLine(" abp remove-proxy -t js -m identity -o Pages/Identity/client-proxies.js");
sb.AppendLine(" abp remove-proxy -t csharp --folder MyProxies/InnerFolder");
return sb.ToString();
}
public override string GetShortDescription()
{
return "Remove client service proxies and DTOs to consume HTTP APIs.";

Loading…
Cancel
Save