Browse Source
Add `without-contracts` info to CLI.
pull/14974/head
maliming
4 years ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
4 changed files with
4 additions and
0 deletions
-
docs/en/CLI.md
-
docs/zh-Hans/CLI.md
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/GenerateProxyCommand.cs
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/ProxyCommandBase.cs
|
|
|
@ -353,6 +353,7 @@ abp generate-proxy -t csharp -url https://localhost:44302/ |
|
|
|
|
|
|
|
* `--type` or `-t`: The name of client type. Available clients: |
|
|
|
* `csharp`: C#, work in the `*.HttpApi.Client` project directory. There are some additional options for this client: |
|
|
|
* `--without-contracts`: Avoid generating the application service interface, class, enum and dto types. |
|
|
|
* `--folder`: Folder name to place generated CSharp code in. Default value: `ClientProxies`. |
|
|
|
* `ng`: Angular. There are some additional options for this client: |
|
|
|
* `--api-name` or `-a`: The name of the API endpoint defined in the `/src/environments/environment.ts`. Default value: `default`. |
|
|
|
|
|
|
|
@ -259,6 +259,7 @@ abp generate-proxy -t csharp -url https://localhost:44302/ |
|
|
|
|
|
|
|
* `--type` 或 `-t`: 客户端类型的名称. 可用的客户端有: |
|
|
|
* `csharp`: C#, 工作在 `*.HttpApi.Client` 项目目录. 此客户端有一些可选选项: |
|
|
|
* `--without-contracts`: 取消生成应用程序服务接口,类,枚举和DTO. |
|
|
|
* `--folder`: 放置生成的 CSharp 代码的文件夹名称. 默认值: `ClientProxies`. |
|
|
|
* `ng`: Angular. 此客户端有一些可选选项: |
|
|
|
* `--api-name` 或 `-a`: 在 `/src/environments/environment.ts` 中定义的API端点名称。. 默认值: `default`. |
|
|
|
|
|
|
|
@ -29,6 +29,7 @@ public class GenerateProxyCommand : ProxyCommandBase<GenerateProxyCommand> |
|
|
|
sb.AppendLine(" abp generate-proxy -t ng"); |
|
|
|
sb.AppendLine(" abp generate-proxy -t js -m identity -o Pages/Identity/client-proxies.js -url https://localhost:44302/"); |
|
|
|
sb.AppendLine(" abp generate-proxy -t csharp --folder MyProxies/InnerFolder -url https://localhost:44302/"); |
|
|
|
sb.AppendLine(" abp generate-proxy -t csharp -url https://localhost:44302/ --without-contracts"); |
|
|
|
|
|
|
|
return sb.ToString(); |
|
|
|
} |
|
|
|
|
|
|
|
@ -102,6 +102,7 @@ public abstract class ProxyCommandBase<T> : IConsoleCommand, ITransientDependenc |
|
|
|
sb.AppendLine("-u|--url <url> API definition URL from."); |
|
|
|
sb.AppendLine("-t|--type <generate-type> The name of generate type (csharp, js, ng)."); |
|
|
|
sb.AppendLine(" csharp"); |
|
|
|
sb.AppendLine(" --without-contracts Avoid generating the application service interface, class, enum and dto types."); |
|
|
|
sb.AppendLine(" --folder <folder-name> (default: 'ClientProxies') Folder name to place generated CSharp code in."); |
|
|
|
sb.AppendLine(" js"); |
|
|
|
sb.AppendLine(" -o|--output <output-name> JavaScript file path or folder to place generated code in."); |
|
|
|
|