diff options
Diffstat (limited to 'cmd-sdks.go')
-rw-r--r-- | cmd-sdks.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/cmd-sdks.go b/cmd-sdks.go index 35b053e..0005215 100644 --- a/cmd-sdks.go +++ b/cmd-sdks.go @@ -187,7 +187,8 @@ func _displaySdks(sdks []xaapiv1.SDK, verbose bool, all bool, filter string) { fmt.Fprintln(writer, "Version\t"+s.Version) fmt.Fprintln(writer, "Status\t"+s.Status) fmt.Fprintln(writer, "Path\t"+s.Path) - fmt.Fprintln(writer, "Url\t"+s.URL) + fmt.Fprintln(writer, "Url\t"+formatURL(s.URL)) + fmt.Fprintln(writer, "Image Url\t"+formatURL(s.ImageURL)) } else { if first { @@ -365,3 +366,10 @@ func sdksAbort(ctx *cli.Context) error { Log.Debugf("Result of %s: %v", url, newSdk) return nil } + +func formatURL(u string) string { + if u == "" { + return "-" + } + return u +} |