nushell/crates/nu-cli/tests/commands
Luccas Mateus 66061192f8
Fix "mv allows moving a directory into itself" (#2619)
* make sort-by fail gracefully if mismatched types are compared

* Added a test to check if sorted-by with invalid types exists gracefully

* Linter changes

* removed redundant pattern matching

* Changed the error message

* Added a comma after every argument

* Changed the test to accomodate the new err messages

* Err message for sort-by invalid types now shows the mismatched types

* Lints problems

* Changed unwrap to expect

* Added the -f flag to rm command

Now when you a use rm -f there will be no error message, even if the
file doesnt actually exist

* Lint problems

* Fixed the wrong line

* Removed println

* Spelling mistake

* Fix problems when you mv a file into itself

* Lint mistakes

* Remove unecessary filtering in most cases
2020-10-01 14:01:05 +13:00
..
keep Keep until and while as subcommands of keep (#2197) 2020-07-18 07:06:48 +12:00
math Add modulo operator and simplify in/not-in (#2505) 2020-09-07 12:12:55 +12:00
move_ Fix "mv allows moving a directory into itself" (#2619) 2020-10-01 14:01:05 +13:00
random Remove panics from random integer and make the constraint more idiomatic (#2578) 2020-09-20 08:41:49 +12:00
skip Merge skip command varieties into one command with sub commands. (#2179) 2020-07-14 20:44:49 -05:00
str_ added various case conversion commands for str. Added the inflection … (#2363) 2020-08-18 08:18:23 +12:00
alias.rs Move alias type inference (experimental) behind --infer/-i flag (#2418) 2020-08-27 17:48:13 +12:00
append.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
autoenv_trust.rs Autoenv rewrite, security and scripting (#2083) 2020-07-06 05:34:00 +12:00
autoenv_untrust.rs Autoenv rewrite, security and scripting (#2083) 2020-07-06 05:34:00 +12:00
autoenv.rs Autoenv rewrite, security and scripting (#2083) 2020-07-06 05:34:00 +12:00
cal.rs Add support to allow the week day start in cal to be configured via a flag (#1996) 2020-06-19 05:34:51 +12:00
cd.rs Add wasm support (#2199) 2020-07-18 13:59:23 +12:00
compact.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
count.rs Fix column count to not break on empty tables (#2374) 2020-08-18 22:16:35 -04:00
cp.rs When the nushell is located in a path that has a space in it, these tests break, this fixes it (#1944) 2020-06-07 15:50:52 +12:00
default.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
drop.rs Stream results of drop command (#2114) 2020-07-06 05:46:06 +12:00
each.rs each group and each window subcommands. (#2508) 2020-09-07 17:54:52 +12:00
echo.rs Make every stream-able (#2120) 2020-07-06 20:23:27 +12:00
enter.rs Convert open/fetch to stream (#2028) 2020-07-04 07:53:20 +12:00
every.rs Add 'every' command to select (or skip) every nth row (#1992) 2020-06-17 07:58:41 +12:00
first.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
format.rs let format access variables also (#1842) 2020-05-19 16:20:09 +12:00
get.rs Add space between column suggestions (#2586) 2020-09-22 14:14:11 +12:00
group_by.rs group-by can generate custom grouping key by block evaluation. (#2172) 2020-07-14 08:45:19 -05:00
headers.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
histogram.rs Bar Chart baseline. (#2621) 2020-09-30 13:27:52 -05:00
insert.rs Allow invocations and fix span error reporting. 2020-08-26 06:46:14 -05:00
into_int.rs Allow the calculation of bytes and int. (#2160) 2020-08-27 17:44:18 +12:00
is_empty.rs Allow folding with tables. (#2538) 2020-09-12 01:40:52 -05:00
last.rs Remove trim in favor of str trim (#2560) 2020-09-16 15:59:32 -04:00
lines.rs Remove trim in favor of str trim (#2560) 2020-09-16 15:59:32 -04:00
ls.rs Added test for ls -a (#2582) 2020-09-21 19:56:37 +12:00
merge.rs Add modulo operator and simplify in/not-in (#2505) 2020-09-07 12:12:55 +12:00
mkdir.rs Implement an option to show paths made of mkdir. (#1932) 2020-06-06 15:13:38 -04:00
mod.rs Remove trim in favor of str trim (#2560) 2020-09-16 15:59:32 -04:00
nth.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
open.rs Add wasm support (#2199) 2020-07-18 13:59:23 +12:00
parse.rs Simplify parse plugin code. (#1904) 2020-05-28 09:58:06 -04:00
prepend.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
range.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
reduce.rs Allow folding with tables. (#2538) 2020-09-12 01:40:52 -05:00
rename.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
reverse.rs Remove trim in favor of str trim (#2560) 2020-09-16 15:59:32 -04:00
rm.rs remove without check path exist, rm -f (#2590) 2020-09-22 17:11:31 -04:00
save.rs Bump to 0.18.2. Move starship external. (#2345) 2020-08-14 07:02:45 +12:00
select.rs fix select for column names with spaces (#2613) 2020-09-30 10:00:07 +13:00
semicolon.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
sort_by.rs Remove trim in favor of str trim (#2560) 2020-09-16 15:59:32 -04:00
split_by.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
split_column.rs Remove trim in favor of str trim (#2560) 2020-09-16 15:59:32 -04:00
split_row.rs Remove trim in favor of str trim (#2560) 2020-09-16 15:59:32 -04:00
touch.rs touch: support multiple arguments (#2386) 2020-08-22 12:08:30 +12:00
uniq.rs Fix uniq to work with simple values (#2214) 2020-07-19 05:19:03 +12:00
update.rs Allow invocations and fix span error reporting. 2020-08-26 06:46:14 -05:00
where_.rs Remove trim in favor of str trim (#2560) 2020-09-16 15:59:32 -04:00
with_env.rs Convert table of primitives to positional arguments for external cmd (#2232) 2020-07-23 09:41:34 +12:00
wrap.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00