You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cue version
cue version v0.12.0
go version go1.23.5
-buildmode exe
-compiler gc
-trimpath true
DefaultGODEBUG asynctimerchan=1,gotypesalias=0,httpservecontentkeepheaders=1,tls3des=1,tlskyber=0,x509keypairleaf=0,x509negativeserial=1
CGO_ENABLED 1
GOARCH arm64
GOOS darwin
GOARM64 v8.0
cue.lang.version v0.12.0
Does this issue reproduce with the latest stable release?
Yes.
What did you do?
When comparing the behavior of cue.All() to other alternatives for configuring cue.Option in an attempt to reduce redundancy, I noticed that cue.All() might logically intend to include hidden fields and/or documentation, adopting the behavior of cue.Hidden(true) and cue.Docs(true) respectively. Using cue.All() almost exactly mimics the use of cue.Hidden(true), except the former does not set the hasHidden flag to true. We see something similar with cue.Docs(true), but I'm less sure that setting that flag, docs, is desirable behavior.
What did you expect to see?
For my use of cue.All() to not necessitate the use of cue.Hidden(true) as well.
What did you see instead?
The need to use cue.Hidden(true) as well.
Happy to open a pull request.
The text was updated successfully, but these errors were encountered:
lorrrrrrrenzo
changed the title
Updating cue.All() to set the hasHidden flag to true
cue: Updating cue.All() to set the hasHidden flag to trueFeb 19, 2025
What version of CUE are you using (
cue version
)?Does this issue reproduce with the latest stable release?
Yes.
What did you do?
When comparing the behavior of
cue.All()
to other alternatives for configuringcue.Option
in an attempt to reduce redundancy, I noticed thatcue.All()
might logically intend to include hidden fields and/or documentation, adopting the behavior ofcue.Hidden(true)
andcue.Docs(true)
respectively. Usingcue.All()
almost exactly mimics the use ofcue.Hidden(true)
, except the former does not set thehasHidden
flag totrue
. We see something similar withcue.Docs(true)
, but I'm less sure that setting that flag,docs
, is desirable behavior.What did you expect to see?
For my use of
cue.All()
to not necessitate the use ofcue.Hidden(true)
as well.What did you see instead?
The need to use
cue.Hidden(true)
as well.Happy to open a pull request.
The text was updated successfully, but these errors were encountered: