Docs: improve details
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
This commit is contained in:
parent
f2ffbcb0fd
commit
b9e6fe21ab
@ -12,14 +12,10 @@ of GCL, the language used to configure all of Google's infrastructure.
|
|||||||
|
|
||||||
Cue extends JSON with powerful features:
|
Cue extends JSON with powerful features:
|
||||||
|
|
||||||
* Go-like tooling and package system
|
* Composition: layering, templating, references
|
||||||
* Custom types
|
* Correctness: types, schemas
|
||||||
* Schemas
|
* Developer experience: comments, packages, first-class tooling, builtin functions
|
||||||
* Templating
|
* And mucn more.
|
||||||
* Reusable packages
|
|
||||||
* Builtin functions
|
|
||||||
* Data composition with references and string interpolation
|
|
||||||
* Multi-line strings, string interpolation
|
|
||||||
|
|
||||||
To get started with Cue, we recommend the following resources:
|
To get started with Cue, we recommend the following resources:
|
||||||
|
|
||||||
@ -27,7 +23,6 @@ To get started with Cue, we recommend the following resources:
|
|||||||
* [Cue playground](https://cuelang.org/play/)
|
* [Cue playground](https://cuelang.org/play/)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Writing your first plan
|
## Writing your first plan
|
||||||
|
|
||||||
To create a Dagger plan:
|
To create a Dagger plan:
|
||||||
@ -80,6 +75,10 @@ For more inspiration, see these examples:
|
|||||||
For example:
|
For example:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
import (
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
// Create a relay definition which generates a greeting message
|
// Create a relay definition which generates a greeting message
|
||||||
#Greeting: {
|
#Greeting: {
|
||||||
salutation: string | *"hello"
|
salutation: string | *"hello"
|
||||||
|
Reference in New Issue
Block a user