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

Commit da28509

Browse files
committed
Merge branch 'main' of github.com:propensive/embarcadero
2 parents 429bbca + 29b880e commit da28509

File tree

3 files changed

+32
-4
lines changed

3 files changed

+32
-4
lines changed

.github/readme.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ ____
1919

2020

2121

22+
2223
## Getting Started
2324

2425

@@ -39,7 +40,7 @@ as long as caution is taken to avoid a mismatch between the project's stability
3940
level and the required stability and maintainability of your own project.
4041

4142
Embarcadero is designed to be _small_. Its entire source code currently consists
42-
of 7 lines of code.
43+
of 29 lines of code.
4344

4445
## Building
4546

doc/lines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7
1+
29

src/core/docker.scala

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,39 @@
1717
package embarcadero
1818

1919
import anticipation.*
20+
import coaxial.*
21+
import contingency.*
22+
import eucalyptus.*
23+
import galilei.*
24+
import gossamer.*
25+
import jacinta.*
26+
import nettlesome.*
27+
import nomenclature.*
28+
import prepositional.*
29+
import rudiments.*
30+
import serpentine.*
31+
import spectacular.*
32+
import telekinesis.*
33+
import turbulence.*
34+
35+
import jsonPrinters.indented
36+
37+
import logging.silent
2038

2139
case class ContainerImage(id: Text)
2240

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

2543
case class DockerEngine(port: Int)
2644

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

0 commit comments

Comments
 (0)