Skip to content

Commit c68c5d1

Browse files
committed
docs
1 parent dceeda4 commit c68c5d1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

codersdk/config.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ import (
99
"golang.org/x/xerrors"
1010
)
1111

12+
// DeploymentConfig is the central configuration for the coder server.
13+
// Secret values should specify `json:"-"` to prevent them from being returned by the API.
14+
// All config values can be set via environment variables in the form of `CODER_<key>` with `.` and `-` replaced by `_`.
15+
// Optional doc comments above fields will generate CLI commands with the following options:
16+
// Usage: - Describe what the setting field does (required)
17+
// Flag: - Long flag name (required)
18+
// Shorthand: - Single character shorthand flag name (optional)
19+
// Default: - Default value for the field as you would write in go code (ex. "string", int, time.Minute, []string{"one", "two"}) (optional)
20+
// Enterprise - Whether or not the field is only available in enterprise (optional)
21+
// Hidden - Whether or not the field should be hidden from the CLI (optional)
1222
type DeploymentConfig struct {
1323
// Usage: External URL to access your deployment. This must be accessible by all provisioned workspaces.
1424
// Flag: access-url

0 commit comments

Comments
 (0)