feat(control): store api (#3)

This commit is contained in:
2025-11-18 14:43:21 +01:00
committed by GitHub
parent 2ab9c82ccb
commit 3b8647e031
7 changed files with 152 additions and 34 deletions
+4 -2
View File
@@ -12,7 +12,9 @@ type CommandResponse struct {
ExitCode int `json:"exitCode"`
}
type ErrorResponse struct {
Error string `json:"error"`
}
func RunShellCommand(cmd *exec.Cmd) CommandResponse {
var stdout, stderr bytes.Buffer
@@ -35,4 +37,4 @@ func RunShellCommand(cmd *exec.Cmd) CommandResponse {
}
return commandOutput
}
}