25 releases

0.0.27 Jun 22, 2024
0.0.25 Mar 23, 2024
0.0.23 Nov 14, 2023
0.0.20 Jul 14, 2023
0.0.1 May 31, 2020

#2929 in Command line utilities

Download history 145/week @ 2024-03-31 95/week @ 2024-04-07 224/week @ 2024-04-14 309/week @ 2024-04-21 229/week @ 2024-04-28 82/week @ 2024-05-05 116/week @ 2024-05-12 73/week @ 2024-05-19 70/week @ 2024-05-26 59/week @ 2024-06-02 61/week @ 2024-06-09 112/week @ 2024-06-16 363/week @ 2024-06-23 85/week @ 2024-06-30 54/week @ 2024-07-07 38/week @ 2024-07-14

597 downloads per month
Used in coreutils

MIT license

490KB
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–13MB
~163K SLoC