Skip to content

Commit

Permalink
cmd/cue: mention CUE_DEBUG in cue help environment
Browse files Browse the repository at this point in the history
The `CUE_DEBUG` environment variable has recently
been added but there was no documentation for it. This
adds some information about it to `cue help environment`.

Signed-off-by: Roger Peppe <rogpeppe@gmail.com>
Change-Id: I9a16952adde7f8bfb3a82ba05fff0630af5bdec0
Dispatch-Trailer: {"type":"trybot","CL":1178223,"patchset":1,"ref":"refs/changes/23/1178223/1","targetBranch":"master"}
  • Loading branch information
rogpeppe authored and cueckoo committed Mar 13, 2024
1 parent ccb64b1 commit 949c67a
Showing 1 changed file with 21 additions and 14 deletions.
35 changes: 21 additions & 14 deletions cmd/cue/cmd/help.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,15 +161,6 @@ var environmentHelp = &cobra.Command{
If an environment variable is unset or empty, it uses a sensible default
setting.
CUE_CONFIG_DIR
The directory where the cue command keeps configuration and
state files. This defaults to a directory for user-specific
configuration data, such as:
"$XDG_CONFIG_HOME/cue" or "$HOME/.config/cue" on Linux
"$HOME/Library/Application Support/cue" on MacOS
"%AppData%/cue" on Windows
CUE_CACHE_DIR
The directory where the cue command keeps a cache of files to be
reused. This defaults to a directory for user-specific temporary
Expand All @@ -179,21 +170,37 @@ setting.
"$HOME/Library/Caches/cue" on MacOS
"%LocalAppData%/cue" on Windows
CUE_REGISTRY
CUE_CONFIG_DIR
The directory where the cue command keeps configuration and
state files. This defaults to a directory for user-specific
configuration data, such as:
This variable specifies which registry or registries to use for
downloading and publishing modules. See "cue help registryconfig"
for details.
"$XDG_CONFIG_HOME/cue" or "$HOME/.config/cue" on Linux
"$HOME/Library/Application Support/cue" on MacOS
"%AppData%/cue" on Windows
CUE_DEBUG
Comma-separated list of debug flags to enable. Current possible
values are:
http
Print log messages showing HTTP requests and responses
made when interacting with module registries.
CUE_EXPERIMENT
Comma-separated list of experiments to enable or disable. The
Comma-separated list of experiments to enable. The
list of available experiments may change arbitrarily over time.
See exp.go in package cuelang.org/go/internal/cueexperiment for
currently valid values.
Warning: This variable is provided for the development and
testing of the cue commands itself. Use beyond that purpose is
unsupported.
CUE_REGISTRY
This variable specifies which registry or registries to use for
downloading and publishing modules. See "cue help registryconfig"
for details.
`,
}

Expand Down

0 comments on commit 949c67a

Please sign in to comment.