Skip to content

Commit

Permalink
refactor(doc): 移除 kubectl 包中的文档解析逻辑- 删除了 kubectl 包中与 OpenAPI 文档解析相关的代码
Browse files Browse the repository at this point in the history
- 将文档解析功能独立为单独的 kom/doc 包- 更新了相关引用和版本号
  • Loading branch information
weibaohui committed Oct 22, 2024
1 parent d3ce6fc commit 4bcec41
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 398 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/gin-gonic/gin v1.10.0
github.com/sashabaranov/go-openai v1.32.2
github.com/spf13/pflag v1.0.5
github.com/weibaohui/kom v0.0.3
github.com/weibaohui/kom v0.0.4
k8s.io/api v0.31.1
k8s.io/apimachinery v0.31.1
k8s.io/client-go v0.31.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS
github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08=
github.com/ugorji/go/codec v1.2.12 h1:9LC83zGrHhuUA9l16C9AHXAqEV/2wBQ4nkvumAE65EE=
github.com/ugorji/go/codec v1.2.12/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg=
github.com/weibaohui/kom v0.0.3 h1:X6gszoRrVbCGxvoUU3E8l1G/xkTSyJGhZkdzG8ri79E=
github.com/weibaohui/kom v0.0.3/go.mod h1:8sFtcytn9hW16Ta/vPpt7SrP7AOgK+hhK4xqXO6t0Os=
github.com/weibaohui/kom v0.0.4 h1:lspdv9C+6znaXkgLI5MCMgRcIqwDrfzr8LU+C0c/c5o=
github.com/weibaohui/kom v0.0.4/go.mod h1:8sFtcytn9hW16Ta/vPpt7SrP7AOgK+hhK4xqXO6t0Os=
github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM=
github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg=
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
Expand Down
3 changes: 0 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ func Init() {
// 初始化kubectl 连接
kubectl.InitConnection(cfg.KubeConfig)

// 初始化文档
_ = kubectl.NewDocs()

// 初始化回调
callback.RegisterCallback()

Expand Down
Loading

0 comments on commit 4bcec41

Please sign in to comment.