mirror of
https://github.com/nushell/nushell.git
synced 2024-12-26 00:50:03 +01:00
8b597187fc
* Add string argument support for path subcommands * Add --replace option to 'path extension' command * Add examples of replacing for path extension * Refactor path extension and its example * Add replacement functionality to path basename * Refactor path subcommands to support more args This adds a lot of redundancy to non-relevant subcommands such as type, exists or expand. * Add replace and num_levels options to path dirname * Rename num_levels option to num-levels * Remove commented code * Clean up path basename * Fix path dirname description * Add path filestem opts; Rename extension -> suffix * Add prefix option and examples to path filestem * Fix broken num-levels of path dirname * Fix failing example test of path filestem * Fix failing test of path extension * Formatting * Add Windows-specific path subcommand examples `path expand` is still broken but otherwise seems to fix all examples on Windows * Fix weird path expand on Windows Also disable example tests for path expand. Failed caconicalization (e.g., due to path not existing) returns the original path so the examples always fail. * Formatting * Return path datatype when appropriate * Do not append empty remainder to path dirname * Add tests for path subcommands * Formatting * Revisit path subcommand description strings * Apply clippy suggestions; Formatting * Remove problematic test checking '~' expansion Wouldn't run on minimal due to useing optional dependency. The test success was also deending on the presence of home dir on the testing machine which might not be completely robust. * Add missing newline to file |
||
---|---|---|
.. | ||
keep | ||
math | ||
move_ | ||
path | ||
random | ||
skip | ||
str_ | ||
alias.rs | ||
append.rs | ||
autoenv_trust.rs | ||
autoenv_untrust.rs | ||
autoenv.rs | ||
cal.rs | ||
cd.rs | ||
compact.rs | ||
count.rs | ||
cp.rs | ||
default.rs | ||
drop.rs | ||
each.rs | ||
echo.rs | ||
empty.rs | ||
enter.rs | ||
every.rs | ||
first.rs | ||
flatten.rs | ||
format.rs | ||
get.rs | ||
group_by.rs | ||
headers.rs | ||
histogram.rs | ||
insert.rs | ||
into_int.rs | ||
last.rs | ||
lines.rs | ||
ls.rs | ||
merge.rs | ||
mkdir.rs | ||
mod.rs | ||
nth.rs | ||
open.rs | ||
parse.rs | ||
prepend.rs | ||
range.rs | ||
reduce.rs | ||
rename.rs | ||
reverse.rs | ||
rm.rs | ||
save.rs | ||
select.rs | ||
semicolon.rs | ||
sort_by.rs | ||
split_by.rs | ||
split_column.rs | ||
split_row.rs | ||
touch.rs | ||
uniq.rs | ||
update.rs | ||
where_.rs | ||
with_env.rs | ||
wrap.rs |