Commit 9654e63d authored by Brendan Melville's avatar Brendan Melville

Merge pull request #162 from vaikas-google/master

Clean up the printing of the types, show the short url 
parents 5ca2eb00 4c517d7f
...@@ -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