andy boot
bc895879e6
Update README.md
2020-01-20 23:36:59 +00:00
andy boot
31f01c061a
Update README.md
2020-01-19 09:55:51 +00:00
andy boot
17894e723c
Merge pull request #55 from bootandy/ab-neaten
...
Ab fix clippy warnings, increment version number
2020-01-19 09:51:33 +00:00
andy boot
6141ddddea
Merge pull request #54 from bootandy/ab-ignore-dir
...
Add option to ignore directories
2020-01-19 09:35:04 +00:00
andy.boot
352c0f7d90
Increment version number
v0.4.4
2020-01-19 09:32:49 +00:00
andy.boot
842a8ec673
Clean up clippy warnings
2020-01-19 09:32:35 +00:00
andy.boot
d97edba041
Add option to ignore directories
...
https://github.com/bootandy/dust/issues/46
Add -X flag used to ignore any file or directory that matches the
provided substring.
This means that -X e will ignore any file or directory with an 'e' in
it.
2020-01-19 09:23:13 +00:00
andy boot
f64e0094f1
Merge pull request #53 from bootandy/single_cpu
...
Fix dust for single core machines
2020-01-18 23:06:28 +00:00
andy.boot
3d2477e554
Allow dust to run on single core machines
...
Force dust to use 2 threads if there is only 1 cpu
JWalk breaks if it tries to run on a single cpu
https://github.com/jessegrosjean/jwalk/issues/15
This is a hack because I can't figure out how to fix JWalk.
This code and the num_cpu crate can be removed when the bug is fixed
Also I have conflated cpus with cores while describing this issue. It is
very difficult to test as I don't have a single core machine.
2020-01-18 22:04:08 +00:00
andy.boot
350d695f7c
Add num_cpus as Cargo dependency
...
Will be used to detect single core computers which crash Jwalk
2020-01-18 21:57:11 +00:00
andy boot
f8b8b8a788
Merge pull request #51 from bootandy/ab-exclude
...
Support excluding filesystems with -x
2020-01-18 21:54:41 +00:00
andy.boot
b9c27f9838
get_filesystem returns Result instead of option
...
Removes unwrap and returns a Result instead of panicing if an invalid
path is given.
Previously if the flag: '-x' was provided with an argument of an
invalid directory the code would crash here
2020-01-16 23:50:56 +00:00
andy.boot
5541df6a73
Refactor code
...
Reduce complexity of examine_dir.
No logic changes
2020-01-15 20:10:33 +00:00
andy.boot
bdc3d404ef
Support excluding filesystems with -x
...
https://github.com/bootandy/dust/issues/50
Add optional -x flag to limit search to the current filesystem.
Add (untested) support for windows for the equivalent of inode and
device.
2020-01-15 19:51:16 +00:00
andy boot
f395a7d768
Merge pull request #49 from bootandy/ab-upgrade
...
Upgrade libraries. Fix assert_cli
v0.4.3
2019-12-30 22:07:04 +00:00
andy.boot
a36eec6cae
Increment version number
2019-12-30 21:40:30 +00:00
Adam Lesperance
38938e005e
Fix colors on windows
...
* Initialize ansi_term if we're on windows
* Silence build warning on non-unix targets
* Update ansi-term which has windows specific fixes (and assert_cli while I'm at it)
2019-12-30 21:36:49 +00:00
andy.boot
da61b15715
Upgrade libraries. Fix assert_cli
...
New assert_cli library requires we cast the param passed to 'is()' as
it can no longer cast implicitly. I am guessing this is because it is
due to confusion between whether to cast to u8 or str
2019-12-30 21:23:53 +00:00
andy boot
0b22d0a977
Merge pull request #47 from bootandy/ab-bug-fix
...
Ab bug fix
2019-12-30 21:12:37 +00:00
andy.boot
356d14ac0f
Hack fix around JWalk behaviour.
...
Jwalk returns '/' as a child of the current node which breaks things.
https://github.com/jessegrosjean/jwalk/issues/13
2019-12-23 15:51:12 +00:00
andy.boot
311bc45388
Verify that '/' is parent of everything
...
Bug could occur when run with '/' as it wasn't considered the parent of
'/usr' due to having the same number of '/'s in the name
2019-12-23 15:50:01 +00:00
andy.boot
ef66fb3938
Remove useless sort
...
The data coming in is already sorted. We should not need to sort it a
second time
2019-12-23 15:49:26 +00:00
andy.boot
b934445e04
Pin jwalk to dependency version
...
https://github.com/jessegrosjean/jwalk/issues/13
Having raised the above issue I don't want it fixed in a minor version
as I have added a work around
2019-12-23 15:48:38 +00:00
andy boot
a6839c020f
Merge pull request #43 from bootandy/no_color
...
Add flag for No color, refactor tests
2019-12-08 23:50:58 +00:00
andy.boot
7e47d5b47a
Increment version number
v0.4.2
2019-12-08 23:36:48 +00:00
andy.boot
6a65570f3f
Refactor tests
...
Make use of the 'is' more to test the entire output.
Add test for no_color mode.
Replace several calls to format_string with calls that build a string
directly. I feel format_string is becoming unweildly and this simplfies
the tests
2019-12-08 23:34:28 +00:00
andy.boot
a4ca78dbe4
Add option flag for no colors
...
https://github.com/bootandy/dust/issues/37
2019-12-08 14:46:45 +00:00
andy boot
bfbe8a57ae
Merge pull request #42 from bootandy/cleanup
...
Cleanup code & fix issue
2019-12-07 09:16:51 +00:00
andy.boot
b4b73e45f3
Cargo update
2019-12-05 21:51:04 +00:00
andy.boot
78119aba0f
Mark function as ignored by clippy
...
We don't want to collapse this if - it is easier to reason about this
way
2019-12-05 21:50:26 +00:00
andy.boot
5535478fe8
Fix substring bug
...
When one directory was a substring of another the directory would appear
as a subdirectory instead of a sibling
Fixed originally by this: 6e03dd77e6
Broken by this: db6c8a019d
Added integration test as this has bitten me before
2019-12-05 21:35:15 +00:00
andy.boot
7ba91a4a22
Rename variable
...
cpu -> threads. threads more accurately represents the number of threads
we will start to run
2019-12-04 20:49:45 +00:00
andy boot
79416fd5fc
Merge pull request #40 from AdminXVII/parallel-walk
...
Use jwalk instead of walkdir: parallel walking for performance boost
2019-12-04 20:45:25 +00:00
Xavier L'Heureux
b66523cff3
Apply clippy lints
2019-12-03 18:34:47 -05:00
Xavier L'Heureux
19a41aa382
Add CLI option for the number of threads to spawn
2019-12-03 18:27:02 -05:00
Xavier L'Heureux
62ac9b623a
Make sure to count the hidden directories
2019-11-26 08:31:52 -05:00
Xavier L'Heureux
bf28d42483
Update Performance section of README
2019-11-26 08:31:52 -05:00
Xavier L'Heureux
f8ce6c97bf
Use more rusty patterns and preallocate enough space
2019-11-26 08:31:52 -05:00
Xavier L'Heureux
86b3cccaf6
perf(IO): use parallel walkdir (jwalk) for super faster traversal
2019-11-26 08:31:52 -05:00
andy boot
3c920431fa
Merge pull request #38 from lespea/update_deps
...
Latest deps
2019-11-25 23:32:09 +00:00
Adam Lesperance
a1ece05af5
Testing deps should only be used when testing
2019-11-21 00:05:53 -06:00
Adam Lesperance
cef2c588b7
Latest deps
2019-11-20 23:05:57 -06:00
andy boot
7d8e498238
Merge pull request #36 from bootandy/try_to_fix_releases
...
Update secure key in Travis
v0.4.1.2
2019-11-02 01:11:42 +00:00
andy boot
53c7a69dcb
Merge pull request #35 from bootandy/fix-version
...
Provide version information with -V
2019-11-02 00:45:36 +00:00
andy.boot
9a9cbefd3d
Provide version information with -V
...
clap does most of this for you - I had forgotten to wire it up
https://github.com/bootandy/dust/issues/33
increment build version
2019-11-02 00:42:57 +00:00
andy boot
224a2c6f25
Merge pull request #32 from mvertescher/update-edition
...
Upgrade to the 2018 edition
2019-10-27 10:39:04 +00:00
Matt Vertescher
99003cbba9
Upgrade to the 2018 edition
2019-10-26 15:19:07 -04:00
andy.boot
c83803b440
Add comment to travis file
...
So I don't forget how to do a release next time
2019-10-09 00:43:04 +01:00
andy.boot
a41862d799
Travis release: Read API key from variable
...
secure key was probably removed. Read from travis ci env variable
instead
v0.4.0.1
2019-10-09 00:35:30 +01:00
andy.boot
6ab46d8471
Add reverse instructions
v0.4.1
v0.4.0
2019-10-08 22:46:52 +01:00