diff --git a/cmd/client/root/main.go b/cmd/client/root/main.go index 702417a..d50019e 100644 --- a/cmd/client/root/main.go +++ b/cmd/client/root/main.go @@ -24,16 +24,25 @@ func main() { switch role { case "admin": - if err := exec.Command("bash", "-c", "/opt/mark1/admin-client").Run(); err != nil { + cmd := exec.Command("bash", "-c", "/opt/mark1/admin-client") + output, err := cmd.CombinedOutput() // 標準出力と標準エラーをキャプチャ + if err != nil { fmt.Printf("Failed to run admin-client: %v\n", err) + fmt.Printf("Output: %s\n", output) } case "app": - if err := exec.Command("bash", "-c", "/opt/mark1/app-client").Run(); err != nil { + cmd := exec.Command("bash", "-c", "/opt/mark1/app-client") + output, err := cmd.CombinedOutput() + if err != nil { fmt.Printf("Failed to run app-client: %v\n", err) + fmt.Printf("Output: %s\n", output) } case "anonymous": - if err := exec.Command("bash", "-c", "/opt/mark1/anonymous-client").Run(); err != nil { + cmd := exec.Command("bash", "-c", "/opt/mark1/anonymous-client") + output, err := cmd.CombinedOutput() + if err != nil { fmt.Printf("Failed to run anonymous-client: %v\n", err) + fmt.Printf("Output: %s\n", output) } default: fmt.Println("Invalid role. You can specify 'admin', 'app', or 'anonymous' in MARK1_HOME_DIR/role") diff --git a/vendor/github.com/go-redis/redis/v8/package-lock.json b/vendor/github.com/go-redis/redis/v8/package-lock.json new file mode 100644 index 0000000..207c506 --- /dev/null +++ b/vendor/github.com/go-redis/redis/v8/package-lock.json @@ -0,0 +1,13 @@ +{ + "name": "redis", + "version": "8.11.5", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "redis", + "version": "8.11.5", + "license": "BSD-2-clause" + } + } +}