From 502f9f3286dd01fb9e88ea4d1ec116bbadb4664a Mon Sep 17 00:00:00 2001 From: yanweidong Date: Fri, 15 Mar 2024 09:48:17 +0800 Subject: [PATCH] dev --- .actions | 8 ++++++++ cmd/{ => commands}/check.go | 0 cmd/{ => commands}/ctl.go | 0 cmd/{ => commands}/ext.go | 0 cmd/{ => commands}/install.go | 0 cmd/{ => commands}/ps.go | 0 cmd/{ => commands}/root.go | 0 cmd/{ => commands}/types.go | 0 cmd/{ => commands}/update.go | 2 +- cmd/main.go | 7 +++++++ main.go | 7 ------- 11 files changed, 16 insertions(+), 8 deletions(-) create mode 100644 .actions rename cmd/{ => commands}/check.go (100%) rename cmd/{ => commands}/ctl.go (100%) rename cmd/{ => commands}/ext.go (100%) rename cmd/{ => commands}/install.go (100%) rename cmd/{ => commands}/ps.go (100%) rename cmd/{ => commands}/root.go (100%) rename cmd/{ => commands}/types.go (100%) rename cmd/{ => commands}/update.go (99%) create mode 100644 cmd/main.go delete mode 100644 main.go 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() -}