[ Agent ] [ Executor ] - 初步完成Executor部分的代码

This commit is contained in:
zeaslity
2023-10-17 16:17:12 +08:00
parent db58a7a6f6
commit 0e8f633166
5 changed files with 250 additions and 46 deletions

View File

@@ -2,6 +2,8 @@ package executor
import "os/exec"
var RemoveForcePrefix = []string{"rm", "-rf"}
// BasicCommandExists 判定命令是否存在
func BasicCommandExists(commandName string) bool {