Ryan Winograd
53af0d486d
Change behavior of depth flag
...
Change the depth flag so that it only changes the depth of displayed
subdirectories, not the depth of the directory size calculation (i.e.,
changing --depth does not change the displayed directory size, rather it
only changes how many levels of subdirectories are shown).
v0.5.3
2020-09-03 21:47:52 +01:00
andy.boot
b643abe05e
Refactor tests.
...
Split tests up into 2 files, 'exact output match' and 'substring ouput
match'
2020-09-03 00:04:27 +01:00
andy.boot
695c9b6747
Add test to check number of files flag
2020-09-03 00:04:27 +01:00
andy.boot
8e8f18b9bc
Rename test_dir3 to test_dir_unicode
...
This better represents what it is trying to test
2020-09-03 00:04:27 +01:00
andy.boot
e767be217a
Add test for hidden flag
2020-09-03 00:04:27 +01:00
andy.boot
9187cb8ad2
Fix dumb test bug
...
dir_substring is in the test_dir2 folder not the test_dir3 folder
2020-09-03 00:04:27 +01:00
andy.boot
873456eb97
Add Hide hidden flag
...
From feature request to respect the .gitignore file. Decided to bundle in
respect for hidden files into the same feature [otherwise if you obey
the .gitignore file you still endup showing the .git directory]
2020-09-03 00:04:27 +01:00
andy.boot
4e1180e502
hack
2020-08-30 10:39:03 +01:00
andy.boot
4ea8d9339e
Support listing directories by number of files
...
Based of https://github.com/bootandy/dust/pull/104
Idea is to allow users to find the number of files in each directory
instead of size.
2020-08-30 10:39:03 +01:00
andy.boot
82237c6bde
Use full width of terminal (extra 2 characters)
...
Make output 2 characters wider to use the full width of terminal
2020-08-19 00:30:46 +01:00
andy.boot
109df305a3
Upgrade packages
2020-08-18 23:12:28 +01:00
andy.boot
d03a9796f4
Refactor display code
...
Pull out parts into separate functions
2020-08-18 23:12:28 +01:00
andy.boot
8e591f3dd5
Move test directories into test dir
2020-08-18 23:12:28 +01:00
andy.boot
086f11988c
Remove stray printlns
2020-08-18 23:12:28 +01:00
andy.boot
52eca1ff78
Change bar graphs
...
Change bars so we always show 'correct' length for current row this
means we ignore the parent's level
2020-08-18 23:12:28 +01:00
andy.boot
e80c60b027
Do not print filenames that are too long
...
https://github.com/bootandy/dust/issues/92
Not 100% sure if this code is clean yet, may well be a better way to do
it
Also:
Added test directory with incredably long name as test case.
Update test_symlinks.py for mac runners. Mac test runners create files
with very long names, hence the tests fail periodically unless they look
for a truncated name with '..' at the end.
2020-08-16 21:19:15 +01:00
andy.boot
e118814684
Tests: Remove any entries in existing tmp dir
...
Delete the existing dir before copying the new dir over it incase its
contents have changed.
Delete & Copy directories before tests are run.
On test runners the tests run in parallel so we can't write and clean
up at the start and end of each test. Unless each test copys the data to
a unique dir name. [This may be a better thing to do in the long run]
2020-08-16 21:19:15 +01:00
andy.boot
1546cf2eba
Update README.md
...
Fix link to packages.
2020-08-13 09:36:25 +01:00
andy.boot
4f06de8044
Notes on how to publish
...
Install new release locally before pushing
Noted here because I forget how to do this
v0.5.2
2020-08-02 14:26:33 +01:00
andy.boot
2ca6fcc9ce
Increment version
2020-08-02 14:26:33 +01:00
pom421
278a31971c
add brew command in README ( #97 )
...
* add brew command in README
* Add an emoji
* remove unncessary space
2020-08-02 11:47:12 +01:00
andy.boot
479e5899c6
Merge pull request #96 from yuqio/change-ansi-red
...
Change red ANSI color code for size of biggest file
2020-06-29 13:21:28 +01:00
yuqio
c4c173e40e
Change red ANSI color code for size of biggest file
...
The enum variant `ansi_term::Colour::Red` (which uses the ANSI color code `31`)
is used instead of the code `196` to display the size of the largest file. This
means that the red color of the terminal theme is used which is probably
preferred by most users.
2020-06-29 01:00:11 +02:00
andy.boot
b8410ee4da
Merge pull request #95 from j2ghz/patch-1
...
Add packaging status
2020-06-07 13:09:23 +01:00
Jozef Hollý
0cb0396a84
Add packaging status
2020-06-07 11:07:04 +02:00
andy.boot
b1fe078e06
Merge pull request #93 from bootandy/ab-fixes
...
Ab various minor fixes
2020-06-02 21:04:20 +01:00
andy.boot
b3d446bfef
Display: No padding if no bars drawn
...
If not drawing the percent bars do not add padding to the filenames
https://github.com/bootandy/dust/issues/89
2020-06-02 13:57:46 +01:00
andy.boot
34be81c216
Windows: If no color flag is already set
...
... then do not print a warning message
https://github.com/bootandy/dust/issues/87
2020-06-02 13:45:12 +01:00
andy.boot
342164d357
Tests: Add Missing copy command
...
should have been added with previous commit, would occastionaly have
caused tests to fail if tests run in random order
2020-03-28 18:32:40 +00:00
andy.boot
bfa3594fe8
Merge pull request #86 from bootandy/ab-run-tests-tmp
...
Move from ignore to jwalk & refactor tests
2020-03-28 16:27:45 +00:00
andy.boot
1f120de168
Run tests on /tmp directory
2020-03-28 16:07:35 +00:00
andy.boot
c0048b2ae4
Handle running with bad parameter
...
Earlier refactor caused running with: 'dust -' to crash
2020-03-28 15:59:07 +00:00
andy.boot
402a8f8249
Remove thread parameter
...
Code to limit number of threads removed. ignore crate seems quite good
at using CPUs correctly
2020-03-28 15:59:07 +00:00
andy.boot
7cc7047b28
Move from assert_cli to assert_cmd
...
assert_cli is deprecated.
This allows us to use 'or' in the output of our integration tests
2020-03-28 15:06:40 +00:00
andy.boot
1953e107c2
Move everything to ignore instead of jwalk
2020-03-22 23:58:07 +00:00
andy.boot
f096e82754
Merge pull request #81 from rivy/fix.cicd-features
...
Maint/CI ~ fix features option for GHA `cargo ...` and `cross ...`
2020-03-15 09:50:37 +00:00
Roy Ivy III
c3415df4b1
Maint/CI ~ fix features option for GHA cargo ... and cross ...
2020-03-10 14:10:28 -05:00
andy.boot
9452049aff
Increment version
v0.5.1
2020-03-01 16:23:26 +00:00
andy.boot
09e3c27e70
Merge pull request #80 from bootandy/colours3
...
Rethink colors
2020-03-01 16:20:00 +00:00
andy.boot
b0bfe654c4
Rethink colors
...
Use LS_COLORS to print default color of each file or folder
Keep showing largest sub folder in red.
2020-03-01 16:10:22 +00:00
andy.boot
6bc44de495
Merge pull request #74 from rasmushalland/win-perf
...
Avoid opening all files for reading on windows
2020-03-01 14:49:47 +00:00
Rasmus Halland
efb455c739
Opening files on windows got a lot cheaper.
...
We avoid passing FILE_READ_DATA to CreateFile.
2020-03-01 14:41:21 +01:00
andy.boot
2c58041885
Clean up windows performance
...
Instead of generating random values for the drive and inode counter on
windows we return None instead
2020-03-01 14:41:21 +01:00
Rasmus Halland
c30f31c22c
Avoid opening all files for reading on windows
...
It can be very expensive to do that, especially when it causes windows defender to read the files and scan them.
2020-03-01 14:41:21 +01:00
andy.boot
59f2cdfb84
Merge pull request #79 from NeelChotai/colours
...
use LS_COLORS for largest subdirectories
2020-03-01 00:59:34 +00:00
Neel Chotai
795d91237d
update args descriptions
2020-03-01 00:51:36 +00:00
Neel Chotai
26ae050f16
use LS_COLORS for directories
2020-03-01 00:51:32 +00:00
Neel Chotai
58b395e7ee
fix compiler warning
2020-03-01 00:49:10 +00:00
andy.boot
3beb2b5274
Merge pull request #78 from bootandy/ab-fix-build
...
Maybe fix windows 8 support
2020-02-29 23:06:57 +00:00
andy.boot
19d938b05e
Maybe fix windows 8 support
...
enable_ansi_support must be run for windows 10 but is not required and
indeed fails if run on windows < 10.
Disable the expect so the code might run on windows 8
may fix:
https://github.com/bootandy/dust/issues/70
2020-02-29 11:13:13 +00:00