MCPcopy Index your code
hub / github.com/coder/coder / attach

Method attach

enterprise/cli/server_dbcrypt.go:371–390  ·  view source on GitHub ↗
(opts *serpent.OptionSet)

Source from the content-addressed store, hash-verified

369}
370
371func (f *deleteFlags) attach(opts *serpent.OptionSet) {
372 *opts = append(
373 *opts,
374 serpent.Option{
375 Flag: "postgres-url",
376 Env: "CODER_EXTERNAL_TOKEN_ENCRYPTION_POSTGRES_URL",
377 Description: "The connection URL for the Postgres database.",
378 Value: serpent.StringOf(&f.PostgresURL),
379 },
380 serpent.Option{
381 Name: "Postgres Connection Auth",
382 Description: "Type of auth to use when connecting to postgres.",
383 Flag: "postgres-connection-auth",
384 Env: "CODER_PG_CONNECTION_AUTH",
385 Default: "password",
386 Value: serpent.EnumOf(&f.PostgresAuth, codersdk.PostgresAuthDrivers...),
387 },
388 cliui.SkipPromptOption(),
389 )
390}
391
392func (f *deleteFlags) valid() error {
393 if f.PostgresURL == "" {

Callers 1

dbcryptDeleteCmdMethod · 0.95

Calls 1

SkipPromptOptionFunction · 0.92

Tested by

no test coverage detected