diff --git a/.actions b/.actions new file mode 100644 index 0000000..be26f95 --- /dev/null +++ b/.actions @@ -0,0 +1,8 @@ +# Actions 编译部署配置文件,文件格式:YAML +# +# 微服务相关配置 +service: + origin: bsm + image: golang:1.22.0-bookworm + describe: system cli cmd + diff --git a/cmd/check.go b/cmd/commands/check.go similarity index 100% rename from cmd/check.go rename to cmd/commands/check.go diff --git a/cmd/ctl.go b/cmd/commands/ctl.go similarity index 100% rename from cmd/ctl.go rename to cmd/commands/ctl.go diff --git a/cmd/ext.go b/cmd/commands/ext.go similarity index 100% rename from cmd/ext.go rename to cmd/commands/ext.go diff --git a/cmd/install.go b/cmd/commands/install.go similarity index 100% rename from cmd/install.go rename to cmd/commands/install.go diff --git a/cmd/ps.go b/cmd/commands/ps.go similarity index 100% rename from cmd/ps.go rename to cmd/commands/ps.go diff --git a/cmd/root.go b/cmd/commands/root.go similarity index 100% rename from cmd/root.go rename to cmd/commands/root.go diff --git a/cmd/types.go b/cmd/commands/types.go similarity index 100% rename from cmd/types.go rename to cmd/commands/types.go diff --git a/cmd/update.go b/cmd/commands/update.go similarity index 99% rename from cmd/update.go rename to cmd/commands/update.go index ec50769..75304a1 100644 --- a/cmd/update.go +++ b/cmd/commands/update.go @@ -1,4 +1,4 @@ -package cmd +package commands import ( "fmt" diff --git a/cmd/main.go b/cmd/main.go new file mode 100644 index 0000000..0696470 --- /dev/null +++ b/cmd/main.go @@ -0,0 +1,7 @@ +package main + +import "git.apinb.com/bsm-tools/bsm/cmd/commands" + +func main() { + commands.Execute() +} diff --git a/main.go b/main.go deleted file mode 100644 index d1d790d..0000000 --- a/main.go +++ /dev/null @@ -1,7 +0,0 @@ -package main - -import "git.apinb.com/bsm-tools/bsm/cmd" - -func main() { - cmd.Execute() -}