Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Commit ce8deee

Browse files
committed
Use Decodable instead of Decoder
1 parent 277a874 commit ce8deee

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/core/docker.scala

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ import gossamer.*
2525
import jacinta.*
2626
import nettlesome.*
2727
import nomenclature.*
28+
import prepositional.*
29+
import rudiments.*
2830
import serpentine.*
2931
import spectacular.*
3032
import telekinesis.*
@@ -36,15 +38,18 @@ import logging.silent
3638

3739
case class ContainerImage(id: Text)
3840

39-
case class Container(id: Text)
41+
case class Container(id: Text, created: Long, virtualSize: Memory)
4042

4143
case class DockerEngine(port: Int)
4244

4345
@main
4446
def run(): Unit =
4547
import internetAccess.enabled
4648
import strategies.throwUnsafely
47-
val response = unsafely(DomainSocket(% / n"var" / n"run" / n"docker.sock")).at(t"/images/json").fetch()
49+
50+
val response =
51+
unsafely(DomainSocket(% / n"var" / n"run" / n"docker.sock")).at(t"/images/json").fetch()
52+
4853
import hieroglyph.*, charEncoders.utf8
49-
println(response)
50-
println(response.receive[Json].show)
54+
55+
println(response.receive[Json].as[List[Container]])

0 commit comments

Comments
 (0)