Skip to content

Commit

Permalink
reva: fix cli commands (cs3org#569)
Browse files Browse the repository at this point in the history
  • Loading branch information
labkode authored Mar 18, 2020
1 parent 3519eb2 commit 95a4d3c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Hannah von Reth <[email protected]>
- Hugo Gonzalez Labrador <[email protected]>
- Ilja Neumann <[email protected]>
- Ishank Arora <[email protected]>
- Jörn Friedrich Dreyer <[email protected]>
- LovisaLugnegard <[email protected]>
- Michael D'Silva <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion cmd/reva/ls.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func lsCommand() *command {
}

if *longFlag {
fmt.Printf("%+v %d %d %v %s\n", info.PermissionSet, info.Mtime, info.Size, info.Id, p)
fmt.Printf("%s %d %d %v %s\n", info.Type, info.Mtime, info.Size, info.Id, p)
} else {
fmt.Println(p)
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/reva/share-list-received.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func shareListReceivedCommand() *command {
t.AppendHeader(table.Row{"#", "Owner.Idp", "Owner.OpaqueId", "ResourceId", "Permissions", "Type", "Grantee.Idp", "Grantee.OpaqueId", "Created", "Updated", "State"})
for _, s := range shareRes.Shares {
t.AppendRows([]table.Row{
{s.Share.Id.OpaqueId, s.Share.Owner.OpaqueId, s.Share.Owner.Idp, s.Share.Owner.OpaqueId, s.Share.ResourceId.String(), s.Share.Permissions.String(), s.Share.Grantee.Type.String(), s.Share.Grantee.Id.Idp, s.Share.Grantee.Id.OpaqueId, time.Unix(int64(s.Share.Ctime.Seconds), 0), time.Unix(int64(s.Share.Mtime.Seconds), 0), s.State.String()},
{s.Share.Id.OpaqueId, s.Share.Owner.Idp, s.Share.Owner.OpaqueId, s.Share.ResourceId.String(), s.Share.Permissions.String(), s.Share.Grantee.Type.String(), s.Share.Grantee.Id.Idp, s.Share.Grantee.Id.OpaqueId, time.Unix(int64(s.Share.Ctime.Seconds), 0), time.Unix(int64(s.Share.Mtime.Seconds), 0), s.State.String()},
})
}
t.Render()
Expand Down

0 comments on commit 95a4d3c

Please sign in to comment.