From 4c2599b72315c3c7381a53a638e893022a3492b3 Mon Sep 17 00:00:00 2001 From: Uzair Ali <72073401+uzaxirr@users.noreply.github.com> Date: Wed, 28 Aug 2024 09:15:05 +0530 Subject: [PATCH] Display privateIP in DB show cmd --- cmd/database/database_show.go | 1 + go.mod | 2 +- go.sum | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/database/database_show.go b/cmd/database/database_show.go index 577a48da..449f2d85 100644 --- a/cmd/database/database_show.go +++ b/cmd/database/database_show.go @@ -59,6 +59,7 @@ var dbShowCmd = &cobra.Command{ ow.AppendDataWithLabel("software_version", db.SoftwareVersion, "Software Version") ow.AppendDataWithLabel("host", db.PublicIPv4, "Host") ow.AppendDataWithLabel("port", strings.Join(ports, ","), "Port") + ow.AppendDataWithLabel("private_ipv4", db.PrivateIPv4, "Private IPv4") if common.OutputFormat == "json" || common.OutputFormat == "custom" { ow.AppendDataWithLabel("firewall_id", db.FirewallID, "Firewall ID") diff --git a/go.mod b/go.mod index a1a4621b..205eb915 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/bradfitz/iter v0.0.0-20191230175014-e8f45d346db8 // indirect github.com/briandowns/spinner v1.11.1 github.com/c4milo/unpackit v0.0.0-20170704181138-4ed373e9ef1c // indirect - github.com/civo/civogo v0.3.73 + github.com/civo/civogo v0.3.74 github.com/dsnet/compress v0.0.1 // indirect github.com/fatih/color v1.13.0 // indirect github.com/google/go-github v17.0.0+incompatible // indirect diff --git a/go.sum b/go.sum index a22cd309..9cc57807 100644 --- a/go.sum +++ b/go.sum @@ -56,6 +56,8 @@ github.com/c4milo/unpackit v0.0.0-20170704181138-4ed373e9ef1c/go.mod h1:Ie6SubJv github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/civo/civogo v0.3.73 h1:thkNnkziU+xh+MEOChIUwRZI1forN20+SSAPe/VFDME= github.com/civo/civogo v0.3.73/go.mod h1:7UCYX+qeeJbrG55E1huv+0ySxcHTqq/26FcHLVelQJM= +github.com/civo/civogo v0.3.74 h1:MPrInhgOIuNOfcg1soyX2pm2L0nUa3/+No5hEgFgAuc= +github.com/civo/civogo v0.3.74/go.mod h1:7UCYX+qeeJbrG55E1huv+0ySxcHTqq/26FcHLVelQJM= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=