@@ -10,57 +10,57 @@ import (
10
10
)
11
11
12
12
type DeploymentFlags struct {
13
- AccessURL StringFlag `json:"access_url"`
14
- WildcardAccessURL StringFlag `json:"wildcard_access_url"`
15
- Address StringFlag `json:"address"`
16
- AutobuildPollInterval DurationFlag `json:"autobuild_poll_interval"`
17
- DerpServerEnable BoolFlag `json:"derp_server_enabled"`
18
- DerpServerRegionID IntFlag `json:"derp_server_region_id"`
19
- DerpServerRegionCode StringFlag `json:"derp_server_region_code"`
20
- DerpServerRegionName StringFlag `json:"derp_server_region_name"`
21
- DerpServerSTUNAddresses StringArrayFlag `json:"derp_server_stun_address"`
22
- DerpConfigURL StringFlag `json:"derp_config_url"`
23
- DerpConfigPath StringFlag `json:"derp_config_path"`
24
- PromEnabled BoolFlag `json:"prom_enabled"`
25
- PromAddress StringFlag `json:"prom_address"`
26
- PprofEnabled BoolFlag `json:"pprof_enabled"`
27
- PprofAddress StringFlag `json:"pprof_address"`
28
- CacheDir StringFlag `json:"cache_dir"`
29
- InMemoryDatabase BoolFlag `json:"in_memory_database"`
30
- ProvisionerDaemonCount IntFlag `json:"provisioner_daemon_count"`
31
- PostgresURL StringFlag `json:"postgres_url"`
32
- OAuth2GithubClientID StringFlag `json:"oauth2_github_client_id"`
33
- OAuth2GithubClientSecret StringFlag `json:"oauth2_github_client_secret"`
34
- OAuth2GithubAllowedOrganizations StringArrayFlag `json:"oauth2_github_allowed_organizations"`
35
- OAuth2GithubAllowedTeams StringArrayFlag `json:"oauth2_github_allowed_teams"`
36
- OAuth2GithubAllowSignups BoolFlag `json:"oauth2_github_allow_signups"`
37
- OAuth2GithubEnterpriseBaseURL StringFlag `json:"oauth2_github_enterprise_base_url"`
38
- OIDCAllowSignups BoolFlag `json:"oidc_allow_signups"`
39
- OIDCClientID StringFlag `json:"oidc_client_id"`
40
- OIDCClientSecret StringFlag `json:"oidc_cliet_secret"`
41
- OIDCEmailDomain StringFlag `json:"oidc_email_domain"`
42
- OIDCIssuerURL StringFlag `json:"oidc_issuer_url"`
43
- OIDCScopes StringArrayFlag `json:"oidc_scopes"`
44
- TelemetryEnable BoolFlag `json:"telemetry_enable"`
45
- TelemetryTraceEnable BoolFlag `json:"telemetry_trace_enable"`
46
- TelemetryURL StringFlag `json:"telemetry_url"`
47
- TLSEnable BoolFlag `json:"tls_enable"`
48
- TLSCertFiles StringArrayFlag `json:"tls_cert_files"`
49
- TLSClientCAFile StringFlag `json:"tls_client_ca_file"`
50
- TLSClientAuth StringFlag `json:"tls_client_auth"`
51
- TLSKeyFiles StringArrayFlag `json:"tls_key_tiles"`
52
- TLSMinVersion StringFlag `json:"tls_min_version"`
53
- TraceEnable BoolFlag `json:"trace_enable"`
54
- SecureAuthCookie BoolFlag `json:"secure_auth_cookie"`
55
- SSHKeygenAlgorithm StringFlag `json:"ssh_keygen_algorithm"`
56
- AutoImportTemplates StringArrayFlag `json:"auto_import_templates"`
57
- MetricsCacheRefreshInterval DurationFlag `json:"metrics_cache_refresh_interval"`
58
- AgentStatRefreshInterval DurationFlag `json:"agent_stat_refresh_interval"`
59
- Verbose BoolFlag `json:"verbose"`
60
- AuditLogging BoolFlag `json:"audit_logging"`
61
- BrowserOnly BoolFlag `json:"browser_only"`
62
- SCIMAuthHeader StringFlag `json:"scim_auth_header"`
63
- UserWorkspaceQuota IntFlag `json:"user_workspace_quota"`
13
+ AccessURL * StringFlag `json:"access_url" typescript:",notnull "`
14
+ WildcardAccessURL * StringFlag `json:"wildcard_access_url" typescript:",notnull "`
15
+ Address * StringFlag `json:"address" typescript:",notnull "`
16
+ AutobuildPollInterval * DurationFlag `json:"autobuild_poll_interval" typescript:",notnull "`
17
+ DerpServerEnable * BoolFlag `json:"derp_server_enabled" typescript:",notnull "`
18
+ DerpServerRegionID * IntFlag `json:"derp_server_region_id" typescript:",notnull "`
19
+ DerpServerRegionCode * StringFlag `json:"derp_server_region_code" typescript:",notnull "`
20
+ DerpServerRegionName * StringFlag `json:"derp_server_region_name" typescript:",notnull "`
21
+ DerpServerSTUNAddresses * StringArrayFlag `json:"derp_server_stun_address" typescript:",notnull "`
22
+ DerpConfigURL * StringFlag `json:"derp_config_url" typescript:",notnull "`
23
+ DerpConfigPath * StringFlag `json:"derp_config_path" typescript:",notnull "`
24
+ PromEnabled * BoolFlag `json:"prom_enabled" typescript:",notnull "`
25
+ PromAddress * StringFlag `json:"prom_address" typescript:",notnull "`
26
+ PprofEnabled * BoolFlag `json:"pprof_enabled" typescript:",notnull "`
27
+ PprofAddress * StringFlag `json:"pprof_address" typescript:",notnull "`
28
+ CacheDir * StringFlag `json:"cache_dir" typescript:",notnull "`
29
+ InMemoryDatabase * BoolFlag `json:"in_memory_database" typescript:",notnull "`
30
+ ProvisionerDaemonCount * IntFlag `json:"provisioner_daemon_count" typescript:",notnull "`
31
+ PostgresURL * StringFlag `json:"postgres_url" typescript:",notnull "`
32
+ OAuth2GithubClientID * StringFlag `json:"oauth2_github_client_id" typescript:",notnull "`
33
+ OAuth2GithubClientSecret * StringFlag `json:"oauth2_github_client_secret" typescript:",notnull "`
34
+ OAuth2GithubAllowedOrganizations * StringArrayFlag `json:"oauth2_github_allowed_organizations" typescript:",notnull "`
35
+ OAuth2GithubAllowedTeams * StringArrayFlag `json:"oauth2_github_allowed_teams" typescript:",notnull "`
36
+ OAuth2GithubAllowSignups * BoolFlag `json:"oauth2_github_allow_signups" typescript:",notnull "`
37
+ OAuth2GithubEnterpriseBaseURL * StringFlag `json:"oauth2_github_enterprise_base_url" typescript:",notnull "`
38
+ OIDCAllowSignups * BoolFlag `json:"oidc_allow_signups" typescript:",notnull "`
39
+ OIDCClientID * StringFlag `json:"oidc_client_id" typescript:",notnull "`
40
+ OIDCClientSecret * StringFlag `json:"oidc_cliet_secret" typescript:",notnull "`
41
+ OIDCEmailDomain * StringFlag `json:"oidc_email_domain" typescript:",notnull "`
42
+ OIDCIssuerURL * StringFlag `json:"oidc_issuer_url" typescript:",notnull "`
43
+ OIDCScopes * StringArrayFlag `json:"oidc_scopes" typescript:",notnull "`
44
+ TelemetryEnable * BoolFlag `json:"telemetry_enable" typescript:",notnull "`
45
+ TelemetryTraceEnable * BoolFlag `json:"telemetry_trace_enable" typescript:",notnull "`
46
+ TelemetryURL * StringFlag `json:"telemetry_url" typescript:",notnull "`
47
+ TLSEnable * BoolFlag `json:"tls_enable" typescript:",notnull "`
48
+ TLSCertFiles * StringArrayFlag `json:"tls_cert_files" typescript:",notnull "`
49
+ TLSClientCAFile * StringFlag `json:"tls_client_ca_file" typescript:",notnull "`
50
+ TLSClientAuth * StringFlag `json:"tls_client_auth" typescript:",notnull "`
51
+ TLSKeyFiles * StringArrayFlag `json:"tls_key_tiles" typescript:",notnull "`
52
+ TLSMinVersion * StringFlag `json:"tls_min_version" typescript:",notnull "`
53
+ TraceEnable * BoolFlag `json:"trace_enable" typescript:",notnull "`
54
+ SecureAuthCookie * BoolFlag `json:"secure_auth_cookie" typescript:",notnull "`
55
+ SSHKeygenAlgorithm * StringFlag `json:"ssh_keygen_algorithm" typescript:",notnull "`
56
+ AutoImportTemplates * StringArrayFlag `json:"auto_import_templates" typescript:",notnull "`
57
+ MetricsCacheRefreshInterval * DurationFlag `json:"metrics_cache_refresh_interval" typescript:",notnull "`
58
+ AgentStatRefreshInterval * DurationFlag `json:"agent_stat_refresh_interval" typescript:",notnull "`
59
+ Verbose * BoolFlag `json:"verbose" typescript:",notnull "`
60
+ AuditLogging * BoolFlag `json:"audit_logging" typescript:",notnull "`
61
+ BrowserOnly * BoolFlag `json:"browser_only" typescript:",notnull "`
62
+ SCIMAuthHeader * StringFlag `json:"scim_auth_header" typescript:",notnull "`
63
+ UserWorkspaceQuota * IntFlag `json:"user_workspace_quota" typescript:",notnull "`
64
64
}
65
65
66
66
type StringFlag struct {
@@ -71,6 +71,7 @@ type StringFlag struct {
71
71
Description string `json:"description"`
72
72
Enterprise bool `json:"enterprise"`
73
73
Secret bool `json:"secret"`
74
+ Hidden bool `json:"hidden"`
74
75
Default string `json:"default"`
75
76
Value string `json:"value"`
76
77
}
@@ -82,6 +83,7 @@ type BoolFlag struct {
82
83
Shorthand string `json:"shorthand"`
83
84
Description string `json:"description"`
84
85
Enterprise bool `json:"enterprise"`
86
+ Hidden bool `json:"hidden"`
85
87
Default bool `json:"default"`
86
88
Value bool `json:"value"`
87
89
}
@@ -93,6 +95,7 @@ type IntFlag struct {
93
95
Shorthand string `json:"shorthand"`
94
96
Description string `json:"description"`
95
97
Enterprise bool `json:"enterprise"`
98
+ Hidden bool `json:"hidden"`
96
99
Default int `json:"default"`
97
100
Value int `json:"value"`
98
101
}
@@ -104,6 +107,7 @@ type DurationFlag struct {
104
107
Shorthand string `json:"shorthand"`
105
108
Description string `json:"description"`
106
109
Enterprise bool `json:"enterprise"`
110
+ Hidden bool `json:"hidden"`
107
111
Default time.Duration `json:"default"`
108
112
Value time.Duration `json:"value"`
109
113
}
@@ -115,6 +119,7 @@ type StringArrayFlag struct {
115
119
Shorthand string `json:"shorthand"`
116
120
Description string `json:"description"`
117
121
Enterprise bool `json:"enterprise"`
122
+ Hidden bool `json:"hidden"`
118
123
Default []string `json:"default"`
119
124
Value []string `json:"value"`
120
125
}
0 commit comments