Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Make ls long output more consistent with other ls implementations #776

Merged
merged 1 commit into from
Jun 17, 2020

Conversation

MikaelSmith
Copy link
Contributor

New format displays: verbs, size, mtime, name

delete, read, write   223     17 Jun 20 20:32 UTC   MAINT.md
delete, read, write   5106    17 Jun 20 20:32 UTC   README.md
delete, read, write   18734   17 Jun 20 20:24 UTC   wash-logo-lg.png
delete, read, write   9264    17 Jun 20 20:24 UTC   wash-logo.png

This is more consistent with other ls implementations, although it still leaves out owner/group because they're not relevant to most objects in Wash.

@MikaelSmith MikaelSmith requested a review from a team June 17, 2020 20:49
@ghost ghost requested review from ekinanp and removed request for a team June 17, 2020 20:49
New format displays: verbs, size, mtime, name
```
delete, read, write   223     17 Jun 20 20:32 UTC   MAINT.md
delete, read, write   5106    17 Jun 20 20:32 UTC   README.md
delete, read, write   18734   17 Jun 20 20:24 UTC   wash-logo-lg.png
delete, read, write   9264    17 Jun 20 20:24 UTC   wash-logo.png
```

This is more consistent with other `ls` implementations, although it
still leaves out owner/group because they're not relevant to most
objects in Wash.

Signed-off-by: Michael Smith <michael.smith@puppet.com>
@MikaelSmith MikaelSmith merged commit 5c3b4f3 into puppetlabs-toy-chest:master Jun 17, 2020
@MikaelSmith MikaelSmith deleted the ls branch June 17, 2020 21:07
verbs := strings.Join(entry.Actions, ", ")
row = []string{cname(entry), mtimeStr, verbs}
row = []string{verbs, sizeStr, mtimeStr, cname(entry)}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noticed pad also needs to be updated.

MikaelSmith added a commit to MikaelSmith/wash that referenced this pull request Jun 17, 2020
Ensures `ls -l` still works when listing files and multiple directories.
Fixes issues introduced in puppetlabs-toy-chest#776.

Signed-off-by: Michael Smith <michael.smith@puppet.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant