更新工作区配置,删除不再使用的Cloudflare相关文件,优化日志输出格式,增强主机信息收集功能,调整代码结构以提高可维护性。
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"agent-wdd/config"
|
||||
"agent-wdd/host_info"
|
||||
"fmt"
|
||||
"io"
|
||||
"os"
|
||||
@@ -26,7 +26,7 @@ var rootCmd = &cobra.Command{
|
||||
|
||||
func init() {
|
||||
// 初始化配置
|
||||
cobra.OnInitialize(config.InitConfig)
|
||||
cobra.OnInitialize(host_info.InitConfig)
|
||||
}
|
||||
|
||||
func Execute() {
|
||||
@@ -111,6 +111,9 @@ func Execute() {
|
||||
}
|
||||
addCertManagerSubcommands(certCmd)
|
||||
|
||||
// 添加Cloudflare命令
|
||||
addCloudflareSubcommands(rootCmd)
|
||||
|
||||
helpCmd := &cobra.Command{
|
||||
Use: "help",
|
||||
Short: "帮助信息",
|
||||
|
||||
Reference in New Issue
Block a user