Skip to content

Commit

Permalink
Merge pull request #14974 from abpframework/cli-without-contracts
Browse files Browse the repository at this point in the history
Add `without-contracts` info to CLI.
  • Loading branch information
realLiangshiwei authored Dec 7, 2022
2 parents 0855231 + 97d58cf commit 9f6e966
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/en/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
1 change: 1 addition & 0 deletions docs/zh-Hans/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public override string GetUsageInfo()
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();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ public virtual string GetUsageInfo()
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.");
Expand Down

0 comments on commit 9f6e966

Please sign in to comment.