Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add without-contracts info to CLI. #14974

Merged
merged 1 commit into from
Dec 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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