(opts *serpent.OptionSet)
| 369 | } |
| 370 | |
| 371 | func (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 | |
| 392 | func (f *deleteFlags) valid() error { |
| 393 | if f.PostgresURL == "" { |
no test coverage detected