Skip to content

Commit 1851fff

Browse files
committed
fix build issue
1 parent 128ad09 commit 1851fff

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

enterprise/cli/dbcrypt_rotate_slim.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
//go:build slim
2+
3+
package cli
4+
5+
import (
6+
"github.com/coder/coder/v2/cli/clibase"
7+
"golang.org/x/xerrors"
8+
)
9+
10+
func (*RootCmd) dbcryptRotate() *clibase.Cmd {
11+
return &clibase.Cmd{
12+
Use: "dbcrypt-rotate --postgres-url <postgres_url> --external-token-encryption-keys <new-key>,<old-key>",
13+
Short: "Rotate database encryption keys",
14+
Options: clibase.OptionSet{},
15+
Hidden: true,
16+
Handler: func(inv *clibase.Invocation) error {
17+
return xerrors.Errorf("slim build does not support `coder dbcrypt-rotate`")
18+
},
19+
}
20+
}

0 commit comments

Comments
 (0)