Skip to content

Commit 347c834

Browse files
committed
cleanup names
1 parent c3c7261 commit 347c834

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

enterprise/cli/features_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ func TestFeaturesList(t *testing.T) {
6565
entitlements.Features[codersdk.FeatureAuditLog].Entitlement)
6666
assert.Equal(t, codersdk.EntitlementNotEntitled,
6767
entitlements.Features[codersdk.FeatureBrowserOnly].Entitlement)
68+
assert.Equal(t, codersdk.EntitlementNotEntitled,
69+
entitlements.Features[codersdk.FeatureWorkspaceQuota].Entitlement)
6870
assert.False(t, entitlements.HasLicense)
6971
})
7072
}

enterprise/cli/server.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ import (
1515

1616
func server() *cobra.Command {
1717
var (
18-
auditLogging bool
19-
browserOnly bool
20-
scimAuthHeader string
21-
workspaceQuota int
18+
auditLogging bool
19+
browserOnly bool
20+
scimAuthHeader string
21+
userWorkspaceQuota int
2222
)
2323
cmd := agpl.Server(func(ctx context.Context, options *agplcoderd.Options) (*agplcoderd.API, error) {
2424
api, err := coderd.New(ctx, &coderd.Options{
2525
AuditLogging: auditLogging,
2626
BrowserOnly: browserOnly,
2727
SCIMAPIKey: []byte(scimAuthHeader),
28-
WorkspaceQuota: workspaceQuota,
28+
WorkspaceQuota: userWorkspaceQuota,
2929
Options: options,
3030
})
3131
if err != nil {
@@ -41,8 +41,8 @@ func server() *cobra.Command {
4141
"Whether Coder only allows connections to workspaces via the browser. "+enterpriseOnly)
4242
cliflag.StringVarP(cmd.Flags(), &scimAuthHeader, "scim-auth-header", "", "CODER_SCIM_API_KEY", "",
4343
"Enables SCIM and sets the authentication header for the built-in SCIM server. New users are automatically created with OIDC authentication. "+enterpriseOnly)
44-
cliflag.IntVarP(cmd.Flags(), &workspaceQuota, "workspace-quota", "", "CODER_WORKSPACE_QUOTA", 0,
45-
"Whether Coder applies a limit on how many workspaces each user can create. "+enterpriseOnly)
44+
cliflag.IntVarP(cmd.Flags(), &userWorkspaceQuota, "user-workspace-quota", "", "CODER_USER_WORKSPACE_QUOTA", 0,
45+
"A positive number applies a limit on how many workspaces each user can create. "+enterpriseOnly)
4646

4747
return cmd
4848
}

0 commit comments

Comments
 (0)