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

#2974 in Command line utilities

Download history 77/week @ 2024-07-01 58/week @ 2024-07-08 33/week @ 2024-07-15 72/week @ 2024-07-22 69/week @ 2024-07-29 55/week @ 2024-08-05 58/week @ 2024-08-12 63/week @ 2024-08-19 55/week @ 2024-08-26 44/week @ 2024-09-02 41/week @ 2024-09-09 56/week @ 2024-09-16 107/week @ 2024-09-23 53/week @ 2024-09-30 42/week @ 2024-10-07 37/week @ 2024-10-14

249 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

~5–14MB
~182K SLoC