- 意图命令按 OS/架构、Linux 发行版与容器运行时解析并执行对应底层命令 - 内置 docker.clearsafe、net.ports、pkg.refreshindex - --dry-run 预览、list/explain/platform/version 辅助命令 - 纯 Go 跨平台构建脚本 scripts/build
19 lines
391 B
Go
19 lines
391 B
Go
// 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:]))
|
|
}
|