Knight
537ed734af
ls: display the correct permissions
2016-06-07 21:10:00 +08:00
Heather
461a4e72b0
Merge pull request #893 from knight42/stat
...
Implement stat
2016-06-07 16:35:01 +04:00
Knight
ca6831ef91
ls: fix target_family
2016-06-07 20:11:40 +08:00
Knight
0394d5398d
ls: rustfmt the code
2016-06-07 20:07:15 +08:00
Heather
2713758b52
Merge pull request #895 from tarka/ls-uname-group
...
Add username and groupname lookup to `ls`
2016-06-05 17:08:20 +04:00
Steve Smith
7a3ba3242a
Need to make the use
Linux-only too.
2016-06-05 11:45:44 +01:00
Steve Smith
1606770a3e
getpwuid is linux
platform only currently.
2016-06-05 11:07:28 +01:00
Knight
5a0dd67003
stat: make ci happy
...
1. force ci to use libc@0.2
2. dont use unstable api Metadata::created
3. change quote style
4. pass metadata.mode() as mode_t
2016-06-05 13:21:41 +08:00
Knight
ad3c984afd
stat: get rid of crate users
2016-06-05 11:38:56 +08:00
Knight
580667295c
stat: use struct libc::statfs now
2016-06-05 11:38:56 +08:00
Knight
48968f3d8a
stat: Add tests
2016-06-05 11:38:56 +08:00
Steve Smith
8161bb7fe1
Flag uname/group functions as unix-specific and add NO-OP Windows versions.
2016-06-04 15:30:39 +01:00
Steve Smith
ce7f23bcc4
Fill in group name for ls
2016-06-04 15:14:59 +01:00
Steve Smith
04522760f1
Break cstring->String conversion out into function
2016-06-04 15:12:40 +01:00
Steve Smith
6179b89bcc
Add conversion of UID to username for ls
2016-06-04 14:50:52 +01:00
Knight
ab17a5e544
stat: Add entries
2016-06-04 13:33:08 +08:00
Knight
fd652bc285
stat: TODO: more tests
2016-06-04 13:33:08 +08:00
Heather
73fdc4824f
Merge pull request #894 from kwantam/master
...
fix fmt's behavior for blank prefixed lines
2016-06-02 08:28:52 +04:00
kwantam
e2cb5eec0a
fix fmt's behavior for blank prefixed lines
2016-06-01 18:19:53 -04:00
Knight
e125118510
stat: find mount point
2016-06-01 14:47:37 +08:00
Heather
539bd20319
Merge pull request #892 from mdsn/follow-stdin
...
Follow stdin
2016-06-01 08:30:01 +04:00
Knight
de4a95accb
stat: almost done
...
TODO:
* print escaped char
* find mount point
* more test cases
2016-06-01 09:52:55 +08:00
Mariano Casco
abb9501894
tail: test -f with no files
2016-05-31 17:40:06 -03:00
Knight
03ce99b455
stat: fsext.rs: remove useless brackets
2016-06-01 01:24:13 +08:00
Mariano Casco
79d281394f
tail: -f option on stdin
...
The follow() function takes slices instead of the actual vectors, and in
the case of unbounded_tail the single bufReader is on stdin.
2016-05-31 12:37:03 -03:00
Mariano Casco
fafab00cd8
tail: remove extra println
2016-05-31 10:52:53 -03:00
Heather
f82ba16dc5
Merge pull request #890 from mdsn/follow-multiple
...
tail: Follow multiple files with the -f option
2016-05-31 13:55:24 +04:00
Knight
676f00fea3
stat: add main.rs
2016-05-31 13:27:45 +08:00
Knight
0926cd43ac
stat: add fsext.rs
...
Mainly includes the pretty-* functions, turning the file types, file system types and
time into human-readable form.
2016-05-31 13:22:19 +08:00
Knight
3202c18c54
stat: add Cargo.toml
2016-05-31 13:21:55 +08:00
Mariano Casco
9c584bab9d
tail: test following multiple files
...
The test_follow_multiple() test verifies that input is read upon append
on both files and that headers are printed when expected.
2016-05-30 17:34:53 -03:00
Mariano Casco
f9627e02d0
tail: print empty line between headers
2016-05-30 17:33:16 -03:00
Mariano Casco
440fb867bc
tail: no headers when following a single file
...
Headers should only be printed when following more than one file. This
commit makes the test_follow() test pass again.
2016-05-30 16:43:14 -03:00
Mariano Casco
8866e05e98
tail: print headers when following multiple files
...
Before each line of content is printed, check if it's from a different
file than the last one we printed for. If so, print a '==> file <=='
header to separate the output in the way tail does.
2016-05-30 16:12:00 -03:00
Mariano Casco
966bfde70f
tail: follow multiple files
...
If multiple files are passed as arguments with the -f option, a vector
of BufReaders is built as the files are first tailed, so that follow()
can take control for the rest of the time the program is running.
follow() loops over each reader and prints all new available content on
each file before moving on to the next.
2016-05-30 16:11:49 -03:00
Mariano Casco
2132889940
tail: don't follow() as part of bounded_tail
...
To get the -f option to follow multiple files, bounded_tail should just
tail a single file and return, instead of blocking processing of other
files by calling follow() (which loops forever).
2016-05-30 16:11:32 -03:00
Heather
6a4efdc842
Merge pull request #889 from jbcrail/update-deps
...
Fix Windows build on all supported targets
2016-05-25 08:14:50 +04:00
Joseph Crail
d8d6f99dd1
cargo: update library dependencies
2016-05-24 22:08:03 -04:00
Joseph Crail
b33a4f5b63
Merge pull request #888 from tshepang/warnings
...
remove compiler warnings
2016-05-24 21:54:52 -04:00
Tshepang Lekhonkhobe
1476446ddf
remove compiler warnings
2016-05-24 22:30:48 +02:00
Heather
ccf604f1f9
Merge pull request #887 from jbcrail/fix-cksum-overflow
...
cksum: resolve msvc unsafe issue
2016-05-24 08:07:29 +04:00
Nathan Ross
e827e80a9f
cksum: resolve msvc unsafe issue
...
Fixes #886
2016-05-23 22:06:37 -04:00
Heather
145f2efe89
Merge pull request #885 from jbcrail/refactor-tests
...
Refactor and fix tests
2016-05-23 09:35:34 +04:00
Joseph Crail
56c9ccc347
tests/common: remove prefixed chars on Windows
2016-05-22 22:54:45 -04:00
Joseph Crail
efce1ac3f9
appveyor: don't double build
...
The integration tests build the multicall executable a second time, so
we disable the original build and only run the tests.
2016-05-22 22:54:45 -04:00
Joseph Crail
678a05d90f
mktemp: add build for all systems
2016-05-22 22:54:39 -04:00
Heather
374e3e6ea2
Merge pull request #884 from modelorganism/od-formats
...
od: take more format options, respect their order.
2016-05-23 01:25:47 +04:00
Christopher Ian Stern
e909e665f0
od: take more format options, respect their order.
2016-05-22 15:46:20 -05:00
Joseph Crail
53c62db8d6
pathchk: make Unix only
2016-05-22 16:41:36 -04:00
Joseph Crail
af6c88f676
mktemp: fix whitespace
2016-05-22 16:41:36 -04:00