nushell/crates
Jakub Žádník 8b597187fc
Path Command Enhancement Project (#2742)
* 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
2020-11-24 22:18:38 +13:00
..
nu_plugin_binaryview Fix new clippy warnings (#2760) 2020-11-22 13:37:16 +13:00
nu_plugin_chart Fix new clippy warnings (#2760) 2020-11-22 13:37:16 +13:00
nu_plugin_fetch Bump to 0.22 (#2726) 2020-11-04 07:31:41 +13:00
nu_plugin_from_bson Bump to 0.22 (#2726) 2020-11-04 07:31:41 +13:00
nu_plugin_from_sqlite Bump to 0.22 (#2726) 2020-11-04 07:31:41 +13:00
nu_plugin_inc Bump to 0.22 (#2726) 2020-11-04 07:31:41 +13:00
nu_plugin_match Bump to 0.22 (#2726) 2020-11-04 07:31:41 +13:00
nu_plugin_post Bump to 0.22 (#2726) 2020-11-04 07:31:41 +13:00
nu_plugin_ps Bump to 0.22 (#2726) 2020-11-04 07:31:41 +13:00
nu_plugin_s3 Bump to 0.22 (#2726) 2020-11-04 07:31:41 +13:00
nu_plugin_selector added as_html switch so a selector can be passed to a selector (#2739) 2020-11-09 13:37:32 -06:00
nu_plugin_start Bump to 0.22 (#2726) 2020-11-04 07:31:41 +13:00
nu_plugin_sys Bump to 0.22 (#2726) 2020-11-04 07:31:41 +13:00
nu_plugin_textview Fix new clippy warnings (#2760) 2020-11-22 13:37:16 +13:00
nu_plugin_to_bson Bump to 0.22 (#2726) 2020-11-04 07:31:41 +13:00
nu_plugin_to_sqlite Bump to 0.22 (#2726) 2020-11-04 07:31:41 +13:00
nu_plugin_tree Bump to 0.22 (#2726) 2020-11-04 07:31:41 +13:00
nu_plugin_xpath Bump to 0.22 (#2726) 2020-11-04 07:31:41 +13:00
nu-cli Path Command Enhancement Project (#2742) 2020-11-24 22:18:38 +13:00
nu-data Bump to 0.22 (#2726) 2020-11-04 07:31:41 +13:00
nu-errors Bump to 0.22 (#2726) 2020-11-04 07:31:41 +13:00
nu-json Fix new clippy warnings (#2760) 2020-11-22 13:37:16 +13:00
nu-parser Revert "Getting closer to multiline scripts (#2738)" (#2745) 2020-11-10 18:22:13 +13:00
nu-plugin Bump to 0.22 (#2726) 2020-11-04 07:31:41 +13:00
nu-protocol Fix new clippy warnings (#2760) 2020-11-22 13:37:16 +13:00
nu-source Fix new clippy warnings (#2760) 2020-11-22 13:37:16 +13:00
nu-table helps table columns align a little bit better (#2753) 2020-11-18 07:18:12 -06:00
nu-test-support Bump to 0.22 (#2726) 2020-11-04 07:31:41 +13:00
nu-value-ext Fix new clippy warnings (#2760) 2020-11-22 13:37:16 +13:00