Skip to content

Commit

Permalink
cmd/cue: add experimental warning to gengotypes
Browse files Browse the repository at this point in the history
This adds a warning to the help text emitted by "cue help exp
gengotypes" mentioning that the command is experimental. This is added
in case a user doesn't infer the command's status from the truncated
"exp" prefix.

Signed-off-by: Jonathan Matthews <[email protected]>
Change-Id: I1435c135f73e76f86f4f608f33c57532dbadd7fd
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1208652
Reviewed-by: Daniel Martí <[email protected]>
TryBot-Result: CUEcueckoo <[email protected]>
  • Loading branch information
jpluscplusm authored and mvdan committed Feb 11, 2025
1 parent ab1e2d9 commit f0ed173
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/cue/cmd/exp.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ func newExpGenGoTypesCmd(c *Command) *cobra.Command {
Long: `
gengotypes generates Go type definitions from exported CUE definitions.
*This command is experimental and may be changed at any time - see "cue help exp"*
The generated Go types are guaranteed to accept any value accepted by the CUE definitions,
but may be more general. For example, "string | int" will translate into the Go
type "any" because the Go type system is not able to express
Expand Down

0 comments on commit f0ed173

Please sign in to comment.