feat: 增加ism管理接口

test: 索引模板和ism的单元测试和集成测试
This commit is contained in:
mouseleee
2025-11-16 23:00:31 +08:00
parent da3883205c
commit fc14798af5
10 changed files with 1777 additions and 108 deletions

View File

@@ -41,6 +41,14 @@ function Run-Linting {
Write-Section "Code Linting"
try {
# 先运行 go fmt
Write-Info "Formatting code..."
$fmtOutput = go fmt ./... 2>&1
if ($fmtOutput) {
Write-Info "Formatted files:"
$fmtOutput | ForEach-Object { Write-Host " $_" -ForegroundColor Gray }
}
Write-Info "Running golangci-lint..."
# 检查 golangci-lint 是否安装
@@ -58,9 +66,7 @@ function Run-Linting {
return $true
} else {
Write-Failure "Linting failed"
if ($Verbose) {
Write-Host $output -ForegroundColor Red
}
Write-Host $output -ForegroundColor Red
return $false
}
}