add newlines to listing types

pull/32/head
vaikas-google 9 years ago
parent da8ba9564c
commit 7650b916b9

@ -98,15 +98,15 @@ func main() {
log.Fatalf("Cannot list %v err") log.Fatalf("Cannot list %v err")
} }
fmt.Printf("Types:") fmt.Printf("Types:\n")
for _, t := range types { for _, t := range types {
fmt.Printf("%s:%s", t.Name, t.Version) fmt.Printf("%s:%s\n", t.Name, t.Version)
downloadURL, err := git.GetURL(t) downloadURL, err := git.GetURL(t)
if err != nil { if err != nil {
log.Printf("Failed to get download URL for type %s:%s", t.Name, t.Version) log.Printf("Failed to get download URL for type %s:%s", t.Name, t.Version)
} }
fmt.Printf("\tdownload URL: %s", downloadURL) fmt.Printf("\tdownload URL: %s\n", downloadURL)
} }
case "describe": case "describe":
fmt.Printf("this feature is not yet implemented") fmt.Printf("this feature is not yet implemented")

Loading…
Cancel
Save