Skip to content

Commit b5a8c8f

Browse files
feat(dbaas): add termination_protection to upctl database show (#356)
- Adding the termination protection field to the output of upctl database list - Removing go-lint from precommit config file
1 parent c76842c commit b5a8c8f

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ repos:
44
hooks:
55
- id: go-fmt
66
# - id: go-vet
7-
- id: go-lint
7+
# - id: go-lint # go-lint is deprecated https://github.com/golang/go/issues/38968
88
- id: golangci-lint # implies go-vet, https://golangci-lint.run/usage/linters
99
# - id: go-critic # run by golangci-lint, in order to configure
1010
- id: go-unit-tests

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Added
1111

1212
- Added support for Valkey properties
13+
- Add termination_protection to upctl database show output
1314

1415
## [3.14.0] - 2025-01-08
1516

internal/commands/database/show.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ func (s *showCommand) Execute(exec commands.Executor, uuid string) (output.Outpu
7171
{Title: "Plan:", Value: db.Plan},
7272
{Title: "Zone:", Value: db.Zone},
7373
{Title: "State:", Value: db.State, Format: format.DatabaseState},
74+
{Title: "Termination protection:", Value: db.TerminationProtection, Format: format.Boolean},
7475
},
7576
},
7677
{

0 commit comments

Comments
 (0)