Enhance Zsh and Config Commands, Update Network Configuration
- Implemented comprehensive Zsh installation command with multiple network scenarios - Added 'config show' subcommand to display agent configuration - Updated version command to print version information - Modified Network configuration to clarify internet connectivity status - Improved download utility with additional file existence checks - Updated agent-wdd rules and documentation
This commit is contained in:
@@ -2,8 +2,8 @@ package cmd
|
||||
|
||||
import (
|
||||
"agent-wdd/config"
|
||||
"agent-wdd/log"
|
||||
"fmt"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
@@ -93,10 +93,7 @@ func Execute() {
|
||||
Short: "打印版本信息",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
// 实现version逻辑
|
||||
log.Debug("来自王达达的礼物 !")
|
||||
log.Info("来自王达达的礼物 !")
|
||||
log.Warning("来自王达达的礼物 !")
|
||||
log.Error("来自王达达的礼物 !")
|
||||
fmt.Println("版本信息: 1.0.0")
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user