From 4c517d7ffe516521caeb237c79afd0e07682d68f Mon Sep 17 00:00:00 2001 From: Ville Aikas Date: Thu, 10 Dec 2015 10:59:10 -0800 Subject: [PATCH] Clean up the printing of the types, show the actual name that the user would use in templates --- dm/dm.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dm/dm.go b/dm/dm.go index 218edc0ad..56beb3e90 100644 --- a/dm/dm.go +++ b/dm/dm.go @@ -122,9 +122,14 @@ func execute() { fmt.Printf("Templates:\n") for _, t := range templates { - fmt.Printf("%s:%s\n", t.Name, t.Version) + var typeSpec = "" + if len(t.Collection) > 0 { + typeSpec = t.Collection + "/" + } + typeSpec = typeSpec + t.Name + ":" + t.Version + fmt.Printf("%s\n", typeSpec) downloadURL := getDownloadUrl(t) - + fmt.Printf("\tshort URL: github.com/%s/%s\n", *template_registry, typeSpec) fmt.Printf("\tdownload URL: %s\n", downloadURL) } case "describe":