Ben Wiederhake
27a81f3d32
du: accept shortcuts for stringly-enum arguments
2024-04-14 15:39:46 +02:00
Carbrex
49c7e65f5d
Use time-style only if time is provided
2024-04-01 17:09:59 +02:00
Sylvestre Ledru
01ea23ba21
Try to release 0.0.26 to see if the artifacts are generated
2024-03-30 22:51:24 +01:00
Sylvestre Ledru
2246a0fad1
0.0.24 => 0.0.25
2024-03-23 22:08:05 +01:00
Daniel Hofstetter
d1e1e9ce0f
du: adapt error msg to match GNU's
2024-01-30 10:08:50 +01:00
Sylvestre Ledru
dd5c6c2d00
0.0.23 => 0.0.24
2024-01-20 20:12:19 +01:00
Daniel Hofstetter
e4fbc31714
du: ignore duplicate names with --files0-from
2024-01-03 09:39:16 +01:00
Daniel Hofstetter
239e5426e6
du: show error for nul names with --files0-from
2024-01-02 16:06:41 +01:00
Sylvestre Ledru
30eb77ac79
du: implement files0-from ( #5721 )
...
* du: implement files0-from
Should make tests/du/files0-from-dir pass
* du: prepare tests/du/files0-from.pl
* fix the build on Windows
* add testfile to the ignore list
* remove useless comment
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
* mkdir is enough
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
* address review comments
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-12-26 14:40:31 +01:00
Terts Diepraam
c32e730a1f
all: remove collect_{lossy,ignore} calls where possible
2023-12-15 14:38:27 +01:00
Terts Diepraam
7861559f88
du: put excludes in traversaloptions and make size_format enum
2023-12-07 22:12:06 +01:00
Terts Diepraam
d6b10d4d72
du: split traversal and printing options
2023-12-07 11:26:44 +01:00
Terts Diepraam
6cae191569
du: remove ArgMatches from StatPrinter
2023-12-07 11:06:04 +01:00
Terts Diepraam
09999427cc
du: merge imports
2023-12-07 10:02:29 +01:00
Clint Teece
84b5e6f0a1
du: start printing output immediately ( #5552 )
...
* du: very rough draft of continuously printing output
* du: clean up printing logic, still needs some polishing
* du: gracefully handle case where `du` returns no `Stat`s
* du: print output using separate thread
* du: clean up print thread implementation
* du: send ownership of `Stat`s to printing thread as soon as `du` is done with them
* du: add basic error handling for communication between threads, use `StatPrinter` to handle printing thread logic
* du: move printing grand total into `StatPrinter`, and move initialization of printing-related variables into `StatPrinter::new`
* du: clean up calculation of `convert_size` function, and separate printing a single stat our into its own method in `StatPrinter`
* du: have printing thread handle printing IO-related errors, to ensure error messages and regular output message are written one at a time
* du: add comment explaining print thread, remove outdated comments and clippy allows
* du: restore clippy allows for cognitive complexity
---------
Co-authored-by: clint <cteece3@gatech.edu>
2023-11-25 15:13:12 +01:00
Sylvestre Ledru
ff92bfb25b
Prepare version 0.0.23
2023-11-13 22:02:01 +01:00
Daniel Hofstetter
85777e6a42
du: rename inodes -> seen_inodes
2023-11-09 16:11:56 +01:00
Daniel Hofstetter
12e61d451c
du: make -l/--count-links work
2023-11-09 16:07:02 +01:00
Daniel Hofstetter
6fa8a6d200
Merge pull request #5501 from alexhausen/du-remove-crash-macro
...
du: remove crash! macro
2023-11-09 10:04:37 +01:00
Alexandre Hausen
4d40555cd5
fixup! du: remove crash! macro
2023-11-08 20:32:03 -03:00
Sylvestre Ledru
4a3efadf70
Merge pull request #5506 from cakebaker/du_h_dereference_args
...
du: add -H (alias for --dereference-args)
2023-11-07 13:05:41 +01:00
Daniel Hofstetter
7afb8461cb
du: add -H (alias for --dereference-args)
2023-11-07 10:30:54 +01:00
Daniel Hofstetter
993a995f8a
du: remove unnecessary return
2023-11-06 10:22:01 +01:00
Daniel Hofstetter
2571af8ede
du: use blocks to remove some cfgs
2023-11-06 10:15:47 +01:00
Alexandre Hausen
e11878e7ba
du: remove crash! macro
2023-11-05 20:58:04 -03:00
Kostiantyn Hryshchuk
6ac1af6953
Fix clippy::implicit_clone
2023-11-04 21:04:29 +01:00
Daniel Hofstetter
29f6631554
du: add -P/--no-dereference
2023-11-03 17:17:44 +01:00
zhitkoff
cb7479e823
uucore: implement SI suffixes R and Q
2023-10-17 10:50:50 -04:00
Sylvestre Ledru
e1bd47d549
0.0.21 => 0.0.22
2023-10-15 14:33:23 +02:00
Sylvestre Ledru
9844f1f07d
0.0.20 => 0.0.21
2023-09-03 14:42:54 +02:00
Terts Diepraam
c3f9e19a3b
all: normalize license notice in all *.rs files
2023-08-24 12:21:09 +02:00
Daniel Hofstetter
774180bb09
Remove the author copyright notices
...
from files missed by #5184
2023-08-23 10:54:00 +02:00
Simon Legner
872818607f
Extract uucore::line_ending::LineEnding ( #5120 )
...
* Extract uucore::line_ending::LineEnding
Aims to provide consistent newline/zero terminator handling.
* Apply suggestions from code review
Co-authored-by: Terts Diepraam <terts.diepraam@gmail.com>
* cargo fmt
* Use uucore::line_ending::LineEnding
* Remove uucore::line_ending::LineEnding::Space
* Rename LineEnding::from_zero_flag
* Replace LineEnding::None with Option<LineEnding>
* cargo clippy
* assert_eq
* cargo clippy
* cargo clippy
* uucore/line_ending: add more documentation
---------
Co-authored-by: Terts Diepraam <terts.diepraam@gmail.com>
2023-08-20 10:03:29 +02:00
Sylvestre Ledru
74530c0f51
Update the version to 0.0.20
2023-07-14 13:04:17 +02:00
John Shin
b34e7f7bf6
du: directories have apparent size of 0
2023-06-25 15:56:57 -07:00
Sylvestre Ledru
6ecef3a0e3
Reformat TOML files with taplo
...
npx --yes @taplo/cli fmt
2023-06-08 09:07:19 +02:00
Sylvestre Ledru
830b7d5ce1
New release
2023-06-04 09:46:59 +02:00
Sylvestre Ledru
f8d7bebed3
ignore some cognitive_complexity for now
2023-05-06 14:50:55 +02:00
Sylvestre Ledru
fcc1ebf078
be more consistent in the help. use follow for deference options
2023-04-13 19:30:33 +02:00
Sylvestre Ledru
00a866e128
du: move to use an enum
2023-04-13 13:38:27 +02:00
Sylvestre Ledru
e82e6a3e4c
du: remove cognitive_complexity clippy allow
2023-04-13 13:38:27 +02:00
Sylvestre Ledru
b2fd72878e
du: reduce the complexity by moving get_convert_size_fn option mgmt into a function
2023-04-13 13:38:27 +02:00
Sylvestre Ledru
f475a36204
du: reduce the complexity by moving the time option mgmt into a function
2023-04-13 13:38:27 +02:00
Sylvestre Ledru
f08b8dab23
du: directly get a vec of pathbuf to avoid several type changes
2023-04-13 13:38:24 +02:00
Sylvestre Ledru
eea8d40e78
du: add support of --dereference-args
...
Should fix tests/du/deref.sh
2023-04-13 13:27:04 +02:00
Sylvestre Ledru
5a1d9cec7e
du: an error code when done on a non existing file
2023-04-13 13:27:04 +02:00
Sylvestre Ledru
af0a263191
0.0.17 => 0.0.18
2023-03-29 08:11:25 +02:00
Sylvestre Ledru
4695c2a204
Fix typo
2023-03-26 21:51:04 +02:00
Maciej Habasiński
d277603bf1
du: fmt fix
2023-03-26 23:38:31 +02:00
Maciej Habasiński
ef9b974c41
du: comment alignment fix
2023-03-26 13:15:48 +02:00