Skip to content

Commit

Permalink
Add Parents field to printInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
prasmussen committed Feb 15, 2014
1 parent 28b7ba0 commit 122de80
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,21 @@ func printInfo(d *gdrive.Drive, f *drive.File) {
"Owner": strings.Join(f.OwnerNames, ", "),
"Md5sum": f.Md5Checksum,
"Shared": util.FormatBool(isShared(d, f.Id)),
"Parents": util.ParentList(f.Parents),
}

order := []string{"Id", "Title", "Description", "Size", "Created", "Modified", "Owner", "Md5sum", "Shared"}
order := []string{
"Id",
"Title",
"Description",
"Size",
"Created",
"Modified",
"Owner",
"Md5sum",
"Shared",
"Parents",
}
util.Print(fields, order)
}

Expand Down

0 comments on commit 122de80

Please sign in to comment.