mirror of
https://github.com/nushell/nushell
synced 2024-12-31 23:39:00 +00: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
59 lines
694 B
Rust
59 lines
694 B
Rust
mod alias;
|
|
mod append;
|
|
mod autoenv;
|
|
mod autoenv_trust;
|
|
mod autoenv_untrust;
|
|
mod cal;
|
|
mod cd;
|
|
mod compact;
|
|
mod count;
|
|
mod cp;
|
|
mod default;
|
|
mod drop;
|
|
mod each;
|
|
mod echo;
|
|
mod empty;
|
|
mod enter;
|
|
mod every;
|
|
mod first;
|
|
mod flatten;
|
|
mod format;
|
|
mod get;
|
|
mod group_by;
|
|
mod headers;
|
|
mod histogram;
|
|
mod insert;
|
|
mod into_int;
|
|
mod keep;
|
|
mod last;
|
|
mod lines;
|
|
mod ls;
|
|
mod math;
|
|
mod merge;
|
|
mod mkdir;
|
|
mod move_;
|
|
mod open;
|
|
mod parse;
|
|
mod path;
|
|
mod prepend;
|
|
mod random;
|
|
mod range;
|
|
mod reduce;
|
|
mod rename;
|
|
mod reverse;
|
|
mod rm;
|
|
mod save;
|
|
mod select;
|
|
mod semicolon;
|
|
mod skip;
|
|
mod sort_by;
|
|
mod split_by;
|
|
mod split_column;
|
|
mod split_row;
|
|
mod str_;
|
|
mod touch;
|
|
mod uniq;
|
|
mod update;
|
|
mod where_;
|
|
mod with_env;
|
|
mod wrap;
|