From bdd5f95ebbe17f992131f24643c0e94b4680c3ec Mon Sep 17 00:00:00 2001 From: Toni Kangas Date: Tue, 23 Jul 2024 11:18:07 +0300 Subject: [PATCH] feat(dbaas): add labels to show output --- CHANGELOG.md | 4 ++++ go.mod | 2 +- go.sum | 2 ++ internal/commands/database/show.go | 2 ++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fc7067946..2ebfa0f80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/go.mod b/go.mod index 180bf7e9a..f40844e1d 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/go.sum b/go.sum index bdad4d023..beeb371ee 100644 --- a/go.sum +++ b/go.sum @@ -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= diff --git a/internal/commands/database/show.go b/internal/commands/database/show.go index 5b3444858..de6985082 100644 --- a/internal/commands/database/show.go +++ b/internal/commands/database/show.go @@ -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" @@ -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{