24 releases

new 0.0.26 Apr 26, 2024
0.0.25 Mar 23, 2024
0.0.24 Jan 24, 2024
0.0.23 Nov 14, 2023
0.0.1 May 31, 2020

#2947 in Command line utilities

Download history 75/week @ 2024-01-04 97/week @ 2024-01-11 127/week @ 2024-01-18 273/week @ 2024-01-25 174/week @ 2024-02-01 98/week @ 2024-02-08 124/week @ 2024-02-15 116/week @ 2024-02-22 101/week @ 2024-02-29 97/week @ 2024-03-07 93/week @ 2024-03-14 421/week @ 2024-03-21 159/week @ 2024-03-28 125/week @ 2024-04-04 63/week @ 2024-04-11 201/week @ 2024-04-18

576 downloads per month
Used in coreutils

MIT license

450KB
10K SLoC

How to update the internal database

Create the test fixtures by writing the output of the GNU dircolors commands to the fixtures folder:

dircolors --print-database > /PATH_TO_COREUTILS/tests/fixtures/dircolors/internal.expected
dircolors --print-ls-colors > /PATH_TO_COREUTILS/tests/fixtures/dircolors/ls_colors.expected
dircolors -b > /PATH_TO_COREUTILS/tests/fixtures/dircolors/bash_def.expected
dircolors -c > /PATH_TO_COREUTILS/tests/fixtures/dircolors/csh_def.expected

Run the tests:

cargo test --features "dircolors" --no-default-features

Edit /PATH_TO_COREUTILS/src/uu/dircolors/src/colors.rs until the tests pass.

Dependencies

~4–15MB
~170K SLoC