clientcmd

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package clientcmd 实现 `gow client`:用本仓库的 TS/Dart HTTP 客户端插件 从 proto 生成客户端 SDK,为前后端分离仓库补上"后端 → 前端类型"的 CLI 环节。

Index

Constants

This section is empty.

Variables

View Source
var CmdClient = &cobra.Command{
	Use:   "client",
	Short: "从 proto 生成前端客户端 SDK(TypeScript / Dart)",
	Long: `在指定目录(默认 ./api/protos)运行 buf generate,用本仓库的客户端插件
产出 HTTP 客户端代码:

  typescript  protoc-gen-typescript-http(纯接口,传输由调用方注入)
  dart        protoc-gen-dart-http(含二进制 wire 编解码)

产物为各 proto 包一份客户端(如 <out>/core/service/v1/index.ts),写入
--out 目录。依赖 buf 与对应插件(gow doctor 可体检):
  go install github.com/tx7do/go-wind-toolkit/protoc-gen-typescript-http@latest
  go install github.com/tx7do/go-wind-toolkit/protoc-gen-dart-http@latest`,
	SilenceUsage: true,
}

CmdClient `gow client` 命令组。

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL