Commit Graph

8 Commits

Author SHA1 Message Date
zeaslity
8e4444a7cc 优化Zsh插件安装流程和命令执行器
- 重构Zsh插件安装逻辑,将硬编码URL拆分为源和目标路径
- 修改RealTimeCommandExecutor,增加实时命令执行日志输出
- 优化SingleLineCommandExecutor日志信息,改进命令日志可读性
- 简化插件安装命令,支持国内外镜像源的插件克隆
2025-03-11 16:14:28 +08:00
zeaslity
34b5f80704 重构命令执行器和防火墙管理逻辑
- 优化Base.go中防火墙清空命令,使用更结构化的命令执行方式
- 修改Proxy.go中Xray安装命令,改用SingleLineCommandExecutor
- 重构Excutor.go,新增RealTimeCommandExecutor方法,支持实时输出命令执行日志
- 简化命令执行日志输出,移除冗余的日志前缀
- 改进管道命令执行的日志记录,增加可读性
2025-03-11 16:07:19 +08:00
zeaslity
06b044dabc 新增Harbor管理功能和优化文件操作工具
- 在Base.go中添加Harbor安装、启动、停止和卸载子命令
- 实现Harbor本地安装流程,包括配置文件修改和容器检查
- 在Excutor.go中改进命令执行错误处理
- 在FileUtils.go中新增MoveFileToAnother方法,优化文件移动逻辑
- 修复DockerCompose本地安装命令的文件路径和移动方法
2025-03-07 10:58:20 +08:00
zeaslity
3cf5e369c1 Refine Command Execution and Test Script
- Updated HardCodeCommandExecutor logging to use more descriptive log prefix
- Modified run_test.sh to streamline proxy and firewall configuration commands
- Removed commented test shell script execution
- Simplified proxy installation commands
2025-03-03 15:36:57 +08:00
zeaslity
5c39bd7594 Enhance Docker Installation and Management Commands
- Improved Docker installation process for Ubuntu systems
- Added support for dynamic Docker version detection
- Enhanced Docker local and online installation commands
- Implemented more robust Docker removal functionality
- Updated Docker installation to use system-specific package sources
- Added better error handling and logging for Docker operations
- Refined Docker service startup and configuration checks
2025-02-28 17:45:12 +08:00
zeaslity
16c041e3eb Add base system configuration commands for agent-wdd
- Implemented new base commands for system configuration:
  * swap: Disable system swap
  * selinux: Disable SELinux
  * firewall: Stop and disable firewalld and ufw
  * sysconfig: Modify system sysctl configuration
  * ssh: Add SSH-related subcommands (key, port, config)

- Updated Config.go to initialize ConfigCache with default values
- Added new utility functions in FileUtils.go for file content manipulation
- Extended Excutor.go with HardCodeCommandExecutor method
2025-02-27 10:57:58 +08:00
zeaslity
b8170e00d4 愉快的使用cursor 2025-02-26 09:25:24 +08:00
zeaslity
ce0395ae66 [agent-wdd] 完成Excecutor和Operator部分,完成base tools部分 2025-02-14 17:17:55 +08:00