Commit 4c517d7f authored by Ville Aikas's avatar Ville Aikas

Clean up the printing of the types, show the actual name that the user would use in templates

parent 9a31c42d
...@@ -122,9 +122,14 @@ func execute() { ...@@ -122,9 +122,14 @@ func execute() {
fmt.Printf("Templates:\n") fmt.Printf("Templates:\n")
for _, t := range templates { 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) downloadURL := getDownloadUrl(t)
fmt.Printf("\tshort URL: github.com/%s/%s\n", *template_registry, typeSpec)
fmt.Printf("\tdownload URL: %s\n", downloadURL) fmt.Printf("\tdownload URL: %s\n", downloadURL)
} }
case "describe": case "describe":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment