chore: update readme
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2024-05-04 22:29:38 +02:00
parent ff2353f0d1
commit 232ab93af7
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912

View File

@ -38,7 +38,9 @@ Cuddle is a purely composition based tool, it means that it allows splitting
cross cutting needs into many small chunks which can then be included in your
service.
The way the services are usually created is that usually all the field are templated, or setup with default configurations just to give a hint that those features are available.
The way the services are usually created is that usually all the field are
templated, or setup with default configurations just to give a hint that those
features are available.
```nickel
let { Vars, .. } = import "github/kjuulh/cuddle" in
@ -63,7 +65,7 @@ let { GoPlan, .. } = import "github/kjuulh/cuddle-go-service-plan" in
deployment = {
dev = {
cron = {
schedule = "* 0 * * *"
schedule = "* 0 * * *",
http = "/refresh-cache"
}
env = {
@ -80,7 +82,8 @@ let { GoPlan, .. } = import "github/kjuulh/cuddle-go-service-plan" in
} & Vars & GoPlan
```
A component has the same setup, but includes a different key to define what it requires
A component has the same setup, but includes a different key to define what it
requires
```nickel
let { Vars, Component .. } = import "github/kjuulh/cuddle" in