Quellcode durchsuchen

Apply the new WalkHistory prototype to merge

creack vor 12 Jahren
Ursprung
Commit
f246cc9cdd
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      commands.go

+ 2 - 1
commands.go

@@ -331,13 +331,14 @@ func (srv *Server) CmdHistory(stdin io.ReadCloser, stdout io.Writer, args ...str
 		return err
 	}
 	var child *Image
-	return image.WalkHistory(func(img *Image) {
+	return image.WalkHistory(func(img *Image) error {
 		if child == nil {
 			fmt.Fprintf(stdout, "   %s\n", img.Id)
 		} else {
 			fmt.Fprintf(stdout, " = %s + %s\n", img.Id, strings.Join(child.ParentCommand, " "))
 		}
 		child = img
+		return nil
 	})
 }