Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
ff2353f0d1
commit
232ab93af7
11
README.md
11
README.md
@ -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
|
cross cutting needs into many small chunks which can then be included in your
|
||||||
service.
|
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
|
```nickel
|
||||||
let { Vars, .. } = import "github/kjuulh/cuddle" in
|
let { Vars, .. } = import "github/kjuulh/cuddle" in
|
||||||
@ -63,7 +65,7 @@ let { GoPlan, .. } = import "github/kjuulh/cuddle-go-service-plan" in
|
|||||||
deployment = {
|
deployment = {
|
||||||
dev = {
|
dev = {
|
||||||
cron = {
|
cron = {
|
||||||
schedule = "* 0 * * *"
|
schedule = "* 0 * * *",
|
||||||
http = "/refresh-cache"
|
http = "/refresh-cache"
|
||||||
}
|
}
|
||||||
env = {
|
env = {
|
||||||
@ -80,7 +82,8 @@ let { GoPlan, .. } = import "github/kjuulh/cuddle-go-service-plan" in
|
|||||||
} & Vars & GoPlan
|
} & 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
|
```nickel
|
||||||
let { Vars, Component .. } = import "github/kjuulh/cuddle" in
|
let { Vars, Component .. } = import "github/kjuulh/cuddle" in
|
||||||
@ -102,7 +105,7 @@ let { Vars, Component .. } = import "github/kjuulh/cuddle" in
|
|||||||
} & Vars & Component
|
} & Vars & Component
|
||||||
```
|
```
|
||||||
|
|
||||||
A plan is usually a composition of other components.
|
A plan is usually a composition of other components.
|
||||||
|
|
||||||
```nickel
|
```nickel
|
||||||
let { Vars, Component, .. } = import "github/kjuulh/cuddle" in
|
let { Vars, Component, .. } = import "github/kjuulh/cuddle" in
|
||||||
|
Loading…
Reference in New Issue
Block a user