Skip to content

Commit

Permalink
feat(dbaas): add labels to show output
Browse files Browse the repository at this point in the history
  • Loading branch information
kangasta committed Jul 23, 2024
1 parent bd632f2 commit bdd5f95
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Add labels to `database show` output.

## [3.10.0] - 2024-07-17

### Changed
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.21

require (
github.com/UpCloudLtd/progress v1.0.2
github.com/UpCloudLtd/upcloud-go-api/v8 v8.6.2
github.com/UpCloudLtd/upcloud-go-api/v8 v8.6.3-0.20240723074208-8629273da612
github.com/adrg/xdg v0.3.2
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d
github.com/gemalto/flume v0.12.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ github.com/UpCloudLtd/progress v1.0.2 h1:CTr1bBuFuXop9TEhR1PakbUMPTlUVL7Bgae9Jgq
github.com/UpCloudLtd/progress v1.0.2/go.mod h1:iGxOnb9HvHW0yrLGUjHr0lxHhn7TehgWwh7a8NqK6iQ=
github.com/UpCloudLtd/upcloud-go-api/v8 v8.6.2 h1:jmHb2PBA4fbDQRR4WrpD94ncSqQ8EAnzJ7PZS0AmALk=
github.com/UpCloudLtd/upcloud-go-api/v8 v8.6.2/go.mod h1:/BL9bYxio0GCdotzBvZjkpm1fSDtD0+0z6PtNMew9HU=
github.com/UpCloudLtd/upcloud-go-api/v8 v8.6.3-0.20240723074208-8629273da612 h1:QWIZUeXUbKZz7xxEt3m+a/CsxRnTFckaK1K77h81g68=
github.com/UpCloudLtd/upcloud-go-api/v8 v8.6.3-0.20240723074208-8629273da612/go.mod h1:/BL9bYxio0GCdotzBvZjkpm1fSDtD0+0z6PtNMew9HU=
github.com/adrg/xdg v0.3.2 h1:GUSGQ5pHdev83AYhDSS1A/CX+0JIsxbiWtow2DSA+RU=
github.com/adrg/xdg v0.3.2/go.mod h1:7I2hH/IT30IsupOpKZ5ue7/qNi3CoKzD6tL3HwpaRMQ=
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
Expand Down
2 changes: 2 additions & 0 deletions internal/commands/database/show.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"github.com/UpCloudLtd/upcloud-cli/v3/internal/commands"
"github.com/UpCloudLtd/upcloud-cli/v3/internal/completion"
"github.com/UpCloudLtd/upcloud-cli/v3/internal/format"
"github.com/UpCloudLtd/upcloud-cli/v3/internal/labels"
"github.com/UpCloudLtd/upcloud-cli/v3/internal/output"
"github.com/UpCloudLtd/upcloud-cli/v3/internal/resolver"
"github.com/UpCloudLtd/upcloud-cli/v3/internal/ui"
Expand Down Expand Up @@ -117,6 +118,7 @@ func (s *showCommand) Execute(exec commands.Executor, uuid string) (output.Outpu
Sections: detailSections,
},
},
labels.GetLabelsSectionWithResourceType(db.Labels, "database"),
output.CombinedSection{
Title: "Nodes:",
Contents: output.Table{
Expand Down

0 comments on commit bdd5f95

Please sign in to comment.