feat: 跨平台命令助手 kopsc 初始实现

- 意图命令按 OS/架构、Linux 发行版与容器运行时解析并执行对应底层命令
- 内置 docker.clearsafe、net.ports、pkg.refreshindex
- --dry-run 预览、list/explain/platform/version 辅助命令
- 纯 Go 跨平台构建脚本 scripts/build
This commit is contained in:
2026-10-31 13:01:39 +08:00
commit 7d9852958f
18 changed files with 2650 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
// Command kopsc is a cross-platform command assistant: one intent, one
// platform-appropriate command.
package main
import (
"os"
"gitea.odboy.cn/odboy/kenaito-kopsc/internal/cli"
)
// version can be overridden at build time:
//
// go build -ldflags "-X main.version=1.2.3" -o bin/kopsc ./cmd/kopsc
var version = "dev"
func main() {
os.Exit(cli.New(version).Execute(os.Args[1:]))
}