bat cache --clear
should clear the --target
dir if specified
#2392
Labels
bat cache --clear
should clear the --target
dir if specified
#2392
While
bat cache --clear
accepts a--target
dir argument, it always clears the default cache dir regardless of--target
.Instead,
bat cache --clear
should clear the--target
dir if one is provided.Fixing this would allow the
bat cache --clear
function to be tested in an temporary directory. The relevant test is already written and can be enabled by removing theignore
flag on thecache_clear
function:bat/tests/integration_tests.rs
Lines 898 to 902 in 78a67ac
Originally posted in #2381 (comment)
The text was updated successfully, but these errors were encountered: