summaryrefslogtreecommitdiffstats
path: root/cmd-misc.go
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-11-30 14:29:35 +0100
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-11-30 14:29:35 +0100
commitb504ab8b02e2891c33e9883a4bb1a3e0f90b2b1e (patch)
treee3db46bf053d541724efe783c72a1cc780b056d4 /cmd-misc.go
parent75416fe01aa98b53c57315a050fc58f0879a238d (diff)
Add -u short option for --url and support port number only.
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'cmd-misc.go')
-rw-r--r--cmd-misc.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd-misc.go b/cmd-misc.go
index 1a5d6d4..e8fe61f 100644
--- a/cmd-misc.go
+++ b/cmd-misc.go
@@ -39,7 +39,8 @@ func xdsVersion(ctx *cli.Context) error {
}
writer := NewTableWriter()
- fmt.Fprintln(writer, "Agent ID:\t", ver.Client.ID)
+ fmt.Fprintln(writer, "Agent:")
+ fmt.Fprintln(writer, " ID:\t", ver.Client.ID)
v := ver.Client.Version
if verbose {
v += " (" + ver.Client.VersionGitTag + ")"
@@ -50,7 +51,8 @@ func xdsVersion(ctx *cli.Context) error {
}
for _, svr := range ver.Server {
- fmt.Fprintln(writer, "Server ID:\t", svr.ID)
+ fmt.Fprintln(writer, "Server:")
+ fmt.Fprintln(writer, " ID:\t", svr.ID)
v = svr.Version
if verbose {
v += " (" + svr.VersionGitTag + ")"