Add DNS Names and IP Addresses to the CLI output. (#1701)

jimlambrt-update-db-docs
Todd 5 years ago committed by GitHub
parent 78dc6cf370
commit 46a1edcb3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -168,6 +168,22 @@ func printItemTable(result api.GenericResult) string {
)
}
if len(item.IpAddresses) > 0 {
ret = append(ret,
"",
" IP Addresses:",
base.WrapSlice(4, item.IpAddresses),
)
}
if len(item.DnsNames) > 0 {
ret = append(ret,
"",
" DNS Names:",
base.WrapSlice(4, item.DnsNames),
)
}
if len(item.Attributes) > 0 {
ret = append(ret,
"",

Loading…
Cancel
Save