mirror of
https://github.com/Llewellynvdm/exa.git
synced 2025-01-13 17:02:58 +00:00
2d1f462bfa
This commit removes the dependency on the ‘getopts’ crate entirely, and re-writes all its uses to use the new options parser instead. As expected there are casualties galore: - We now need to collect the options into a vector at the start, so we can use references to them, knowing they’ll be stored *somewhere*. - Because OsString isn’t Display, its Debug impl gets used instead. (This is hopefully temporary) - Options that take values (such as ‘sort’ or ‘time-style’) now parse those values with ‘to_string_lossy’. The ‘lossy’ part means “I’m at a loss for what to do here” - Error messages got a lot worse, but “--tree --all --all” is now a special case of error rather than just another Misfire::Useless. - Some tests had to be re-written to deal with the fact that the parser works with references. - ParseError loses its lifetime and owns its contents, to avoid having to attach <'a> to Misfire. - The parser now takes an iterator instead of a slice. - OsStrings can’t be ‘match’ patterns, so the code devolves to using long Eq chains instead. - Make a change to the xtest that assumed an input argument with invalid UTF-8 in was always an error to stderr, when that now in fact works! - Fix a bug in Vagrant where ‘exa’ and ‘rexa’ didn’t properly escape filenames with spaces in. |
||
---|---|---|
.. | ||
attributes | ||
dates_accessed | ||
dates_full_iso | ||
dates_iso | ||
dates_long_iso | ||
dates_modified | ||
dir_paths | ||
dirs | ||
empty | ||
file_names | ||
file_names_1 | ||
file_names_R | ||
file_names_T | ||
file_names_x | ||
file-names-exts | ||
file-names-exts-case | ||
file-names-exts-ext | ||
file-names-exts-ext-case | ||
files | ||
files_40 | ||
files_80 | ||
files_120 | ||
files_160 | ||
files_200 | ||
files_l | ||
files_l_bw | ||
files_l_scale | ||
files_lG_40 | ||
files_lG_80 | ||
files_lG_120 | ||
files_lG_160 | ||
files_lG_200 | ||
files_lh | ||
files_lhb | ||
files_lhb2 | ||
files_star_100 | ||
files_star_150 | ||
files_star_200 | ||
files_star_lG_100 | ||
files_star_lG_150 | ||
files_star_lG_200 | ||
git_additions | ||
git_edits | ||
help | ||
help_long | ||
hiddens | ||
hiddens_a | ||
hiddens_aa | ||
hiddens_l | ||
hiddens_la | ||
hiddens_laa | ||
ignores_ogg | ||
links | ||
links_1 | ||
links_1_files | ||
links_T | ||
passwd | ||
permissions | ||
permissions_sudo | ||
proc_1_root | ||
README.md | ||
run.sh | ||
sort-by-type | ||
specials | ||
specials_F | ||
specials_sort |
Extra tests
These extra tests are intended to be run from a Vagrant VM that has already had its environment set up -- see the section in the README for more details.