Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

Pretty print the list #10

Merged
merged 1 commit into from
Dec 18, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd/transporter/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ func (c *listCommand) Run(args []string) int {
fmt.Println(err)
return 1
}

fmt.Printf("%-20s %-15s %s\n", "Name", "Type", "URI")
for n, v := range config.Nodes {
fmt.Println(n, v)
fmt.Printf("%-20s %-15s %s\n", n, v.Type, v.URI)
}

return 0
Expand Down