Skip to content

Commit

Permalink
Remove local column from printTransports output
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkren committed May 22, 2019
1 parent 18ed94c commit 7a4413f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/skywire-cli/commands/node/transports.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ var rmTpCmd = &cobra.Command{
func printTransports(tps ...*node.TransportSummary) {
sortTransports(tps...)
w := tabwriter.NewWriter(os.Stdout, 0, 0, 5, ' ', tabwriter.TabIndent)
_, err := fmt.Fprintln(w, "type\tid\tlocal\tremote\tmode")
_, err := fmt.Fprintln(w, "type\tid\tremote\tmode")
internal.Catch(err)
for _, tp := range tps {
tpMode := "regular"
if tp.IsSetup {
tpMode = "setup"
}

_, err = fmt.Fprintf(w, "%s\t%s\t%s\t%s\t%s\n", tp.Type, tp.ID, tp.Local, tp.Remote, tpMode)
_, err = fmt.Fprintf(w, "%s\t%s\t%s\t%s\n", tp.Type, tp.ID, tp.Remote, tpMode)
internal.Catch(err)
}
internal.Catch(w.Flush())
Expand Down
Binary file added routing.db
Binary file not shown.

0 comments on commit 7a4413f

Please sign in to comment.