Skip to content

Commit

Permalink
fix(list): Show info for datasets even if they don't have meta
Browse files Browse the repository at this point in the history
  • Loading branch information
dustmop committed May 30, 2018
1 parent 4ddb763 commit a853e71
Showing 1 changed file with 3 additions and 19 deletions.
22 changes: 3 additions & 19 deletions cmd/print.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,28 +66,12 @@ func printDatasetRefInfo(i int, ref repo.DatasetRef) {
fmt.Printf(" %s\n", white(ds.Meta.Description))
}
}

if ds.Structure != nil {
fmt.Printf(" %d bytes, %d entries, %d errors", ds.Structure.Length, ds.Structure.Entries, ds.Structure.ErrCount)
}
}
if ds != nil && ds.Structure != nil {
fmt.Printf(" %d bytes, %d entries, %d errors", ds.Structure.Length, ds.Structure.Entries, ds.Structure.ErrCount)
}

fmt.Println()

// fmt.Println("\tfields:")
// fmt.Printf("\t\t")
// for _, f := range ds.Fields {
// fmt.Printf("%s|%s\t", cyan(f.Name), blue(f.Type.String()))
// }
// fmt.Println()

// table := tablewriter.NewWriter(os.Stdout)
// table.SetBorders(tablewriter.Border{Left: false, Top: false, Right: false, Bottom: false})
// table.SetCenterSeparator("")
// table.Append(ds.FieldNames())
// table.Append(ds.FieldTypeStrings())
// table.Render()
// fmt.Println()
}

func printPeerInfo(i int, p *config.ProfilePod) {
Expand Down

0 comments on commit a853e71

Please sign in to comment.