-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
And enable rendering of the `cue help embed` page. Note that a number of jsonschema files are imported differently, and we are also more strict about the schema version strings too. The other changes are varied, including some CUE formatting fixes and some changes to help texts. DO NOT MERGE: to update once v0.10.0 is tagged Preprocessor-No-Write-Cache: true Signed-off-by: Daniel Martí <[email protected]> Change-Id: I392c68336c800c95dba7eac695e64410b8f94bcc Dispatch-Trailer: {"type":"trybot","CL":1199504,"patchset":2,"ref":"refs/changes/04/1199504/2","targetBranch":"master"}
- Loading branch information
Showing
55 changed files
with
267 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
WARNING: "Code generated site_tool.cue; DO NOT EDIT." | ||
title: "cue help embed" | ||
aliases: ["/docs/reference/cli/cue-embed/"] | ||
weight: 1000 | ||
tags: | ||
- cue command | ||
--- | ||
|
||
{{{with script "en" "cue cli help text"}}} | ||
cue help embed | ||
{{{end}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// Code generated site_tool.cue; DO NOT EDIT. | ||
package site | ||
|
||
{"content":{"docs":{"reference":{"command":{"cue-help-embed":{"page":{}}}}}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
hugo/content/en/docs/reference/command/cue-help-embed/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
WARNING: "Code generated site_tool.cue; DO NOT EDIT." | ||
title: "cue help embed" | ||
aliases: ["/docs/reference/cli/cue-embed/"] | ||
weight: 1000 | ||
tags: | ||
- cue command | ||
--- | ||
|
||
```text { title="TERMINAL" type="terminal" codeToCopy="Y3VlIGhlbHAgZW1iZWQ=" } | ||
$ cue help embed | ||
The @embed attribute can be used to load files as part of CUE evaluation. | ||
Embedding must be enabled by a file-level @extern(embed) attribute. | ||
Embed a single file as follows, which must exist when evaluating: | ||
@extern(embed) | ||
package foo | ||
a: _ @embed(file=foo.json) | ||
Embed many files of the same type with a glob pattern, | ||
which inserts one field per file matched: | ||
b: _ @embed(glob=images/*.*, type=binary) | ||
b: [string]: bytes | ||
Note that "**" glob patterns are not supported at this time. | ||
If the file extension in "file" or "glob" does not imply a file type, | ||
it must be specified with the "type" encoding as shown above. | ||
See the "filetypes" help topic for more. | ||
Files containing multiple documents cannot be embedded directly. | ||
For NDJSON or multi-document YAML files, embed as type=text | ||
and use APIs like yaml.Extract to decode as a list. | ||
Note that embedding cue files is not supported at this time. | ||
Note: support for embed is experimental, and is enabled via | ||
CUE_EXPERIMENT=embed. | ||
For more details and discussion, see the proposal linked from | ||
https://cuelang.org/discussion/3264. | ||
``` |
Oops, something went wrong.