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
andy boot
c727eb2d11
Merge pull request #31 from bootandy/nodes_rev
...
Refactor & support reverse
2019-10-08 21:31:11 +01:00
andy.boot
0effaa7fd7
Increment version
2019-10-08 21:05:37 +01:00
andy.boot
25c50f88c4
cargo upgrade
2019-10-08 21:05:09 +01:00
andy.boot
0c19a66432
Add test for reverse flag
2019-10-08 20:57:44 +01:00
andy.boot
4cffc4370b
Bring back the reverse flag
...
Following the large refactor on the previous commit, this commit fixes
the reverse functionality.
Depth detection moved into the tree building instead of being calculated
when drawing the tree to screen
2019-10-06 22:00:40 +01:00
andy.boot
db6c8a019d
Massive refactor
...
WIP
Replace array of (string, int) pairs with tree of nodes.
A tree of nodes more accurately represents the underlying file structure
and hence is a better fit for the problem space.
Regression: Reverse doesn't work in this commit.
I suspect more methods can be simplifed and reduced.
2019-10-05 17:57:47 +01:00
andy.boot
e03094a4fa
Add reverse flag
...
Pull several variables related to how output is printed
into DisplayData struct
2019-10-03 23:07:52 +01:00
andy.boot
1d9a56e025
A way of supporting reverse
2019-10-02 22:31:49 +01:00
andy.boot
ec2d9e19d4
Run format, introduce new function.
...
strip_end_slash_including_root will remove end slashes including the
root directory.
The root directory has been a long running problem because if we strip
the final slash we will run dust on no directory instead of the root.
2019-10-02 20:14:13 +01:00
andy.boot
9fbfcb275a
pull out a method
...
(will be needed for reverse)
2019-10-02 20:06:09 +01:00
andy.boot
1c60d1e2ac
Display: replace boolean with integer count
...
This will probably be useful when i refactor for the reverse mode
2019-10-02 19:54:00 +01:00
andy.boot
fd35734a94
Simplify string code, remove into
2019-10-02 19:48:57 +01:00
andy boot
c6f4ace2b6
Merge pull request #30 from bootandy/neaten
...
Neaten
2019-10-02 19:16:31 +01:00
Bob
d46b63fad8
Add detection of files which fail permission
...
Old code caught some file permission denied but not all.
2019-10-01 22:44:17 +01:00
Bob
872a49bb7d
better var name
2019-10-01 22:35:29 +01:00
andy boot
04c6c204c3
Merge pull request #27 from bootandy/new2
2019-10-01 22:26:56 +01:00
Bob
7ac01e8166
Increment version number
2019-10-01 22:18:36 +01:00
Bob
2f7a88e8dc
Fix issues from running on root directory
...
clean up: 80338f4
Fixes -d flag to work again. Add test to stop regression
2019-10-01 22:18:16 +01:00
Bob
2ca2cebdad
New Cargo lock
2019-09-29 11:28:51 +01:00
bootandy
80338f4731
Fix running on root dir /
...
Fixes: https://github.com/bootandy/dust/issues/22
Allows code to run on the root directory
2019-07-04 00:03:33 +01:00
bootandy
d327bd2e68
Fix code to handle single dots in path
...
Before this fix adding a single dot to the end of a path would cause the
code to crash.
2019-07-02 00:56:43 +01:00
bootandy
7db6cf2f32
Add test to handle single dot in path
2019-07-02 00:54:58 +01:00
bootandy
76d0762c97
Add assert to stop infinite loops
2019-07-01 22:43:10 +01:00
bootandy
6e03dd77e6
Fix obscure display bug
...
When one directory was a substring of another with files in the files
could appear as children of the wrong directory
Fix: https://github.com/bootandy/dust/issues/25
2019-07-01 22:25:06 +01:00
bootandy
4906e9efda
comment typos
2019-07-01 22:25:06 +01:00
bootandy
876609f2cb
Obey new clippy
...
Clippy is like having a reviewer fix your dodgy code.
2019-07-01 22:25:06 +01:00
bootandy
12775db94b
Update git ignore to ignore idea
2019-07-01 22:25:06 +01:00
bootandy
bfaf5ee173
Add bash line to ci script
2019-07-01 22:25:06 +01:00
bootandy
fd68330815
Update cargo lock
2019-07-01 22:25:06 +01:00
andy.boot
0bf4ebf554
Fix minor color bug
...
If we are not using RED then the Color should be the terminal default
not 7
2018-06-19 23:39:23 +01:00
andy boot
cab24f58d5
Merge pull request #20 from bootandy/refac
...
Refactor
2018-05-10 18:28:07 +01:00
andy.boot
b1b933d851
Refactor & Optimize use of depth
...
Code Refactored
Using Depth now prunes the tree below the displayable depth so display
calls finish quicker.
2018-05-10 17:36:56 +01:00