]> Cypherpunks.ru repositories - goredo.git/blobdiff - main.go
Recursive serialized logs capability
[goredo.git] / main.go
diff --git a/main.go b/main.go
index 0bb9357e9bf021dcc3c46a085cba5c1a4bd529ea..300157139d22896b696bf696987ba9a94428d68f 100644 (file)
--- a/main.go
+++ b/main.go
@@ -337,12 +337,7 @@ CmdSwitch:
                        log.Fatalln("single target expected")
                }
                d, t := cwdAndTgt(tgts[0])
-               var fd *os.File
-               fd, err = os.Open(path.Join(d, RedoDir, t+LogSuffix))
-               if err != nil {
-                       break
-               }
-               _, err = io.Copy(os.Stdout, fd)
+               err = showBuildLog(d, t, nil, 0)
        case CmdNameRedoWhichdo:
                if len(tgts) != 1 {
                        log.Fatalln("single target expected")