this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

cmd/cue: provide initial text for 'help embed'

Provide skeleton text for 'cue help embed'. This gives a one-liner that
will mirror the headline sentence from the proposal linked from
https://cuelang.org/discussion/3264.

For #3268.

Signed-off-by: Paul Jolly <paul@myitcv.io>
Change-Id: Ib511ae846c40e4eee0847190d2764ecc7401d8c8
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1197335
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>

+17
+16
cmd/cue/cmd/help.go
··· 96 96 97 97 var helpTopics = []*cobra.Command{ 98 98 commandsHelp, 99 + embedHelp, 99 100 environmentHelp, 100 101 filetypeHelp, 101 102 flagsHelp, ··· 169 170 # Unify data.json with schema.json. 170 171 $ cue export data.json schema: schema.json 171 172 `, 173 + } 174 + 175 + var embedHelp = &cobra.Command{ 176 + Use: "embed", 177 + Short: "file embedding", 178 + Long: ` 179 + The @embed directive can be used to load files of any type as part of CUE 180 + evaluation. 181 + 182 + Note: support for embed is experimental, and is enabled via 183 + CUE_EXPERIMENT=embed. 184 + 185 + For more details and discussion, see the proposal linked from 186 + https://cuelang.org/dicsussion/3264. 187 + `[1:], 172 188 } 173 189 174 190 var environmentHelp = &cobra.Command{
+1
cmd/cue/cmd/testdata/script/help.txtar
··· 105 105 106 106 Additional help topics: 107 107 cue commands user-defined commands 108 + cue embed file embedding 108 109 cue environment environment variables 109 110 cue filetypes supported file types and qualifiers 110 111 cue flags common flags for composing packages