nushell/crates/nu-cli/tests/commands
Darren Schroeder 731aa6bbdd
use encoding on open for #1939 (#1949)
* WIP - not compiling

* compiling but panicing

* still broken

* nearly working

* reverted deserializer_string changes
updated enter.rs and open.rs to use Option<Tagged<String>>
Accepted Clippy suggestions
Accepted fmt suggestions
Left original code from open.rs
 We may want to use some of it and only fallback to encoding.

* Don't exit when there is an unknown encoding.

* When encoding is unknown default to utf-8.

* only do encoding if the user says to it

* merged some conflicts on open

* made error messages consistent

* Updated unwrap with expect

* updated open test to pass with more descriptive err
updated enter test to not fail

* change _location to location

* changed _visitor to visitor

* Added a more verbose usage statement for encoding
Linked to docs.rs/encoding_rs for details

Co-authored-by: Darren Schroeder <fdncred@hotmail.com>
2020-06-11 19:37:43 -05:00
..
alias.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
append.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
average.rs Support average for tables. 2020-05-30 10:33:09 -05:00
cal.rs Cal documentation updates (#1895) 2020-05-26 07:21:36 -04:00
calc.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
cd.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
compact.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05: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 Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
each.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
enter.rs use encoding on open for #1939 (#1949) 2020-06-11 19:37:43 -05: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 Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
group_by.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
headers.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
histogram.rs Added a count column on the histogram command (#1853) 2020-05-20 18:02:36 +12:00
insert.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
is_empty.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
keep_until.rs Str plugin promoted to built-in Nu command. 2020-05-28 11:18:58 -05:00
keep_while.rs Str plugin promoted to built-in Nu command. 2020-05-28 11:18:58 -05:00
keep.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
last.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
lines.rs Split split command to sub commands. 2020-05-24 02:02:44 -05:00
ls.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
math.rs Proper precedence history in math (#1966) 2020-06-12 05:17:08 +12:00
merge.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
mkdir.rs Implement an option to show paths made of mkdir. (#1932) 2020-06-06 15:13:38 -04:00
mod.rs Support average for tables. 2020-05-30 10:33:09 -05:00
mv.rs Simplify mv in FilesystemShell (#1587) 2020-05-12 16:40:45 -04:00
nth.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
open.rs use encoding on open for #1939 (#1949) 2020-06-11 19:37:43 -05: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
rename.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
reverse.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
rm.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
save.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
select.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
semicolon.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
skip_until.rs Str plugin promoted to built-in Nu command. 2020-05-28 11:18:58 -05:00
sort_by.rs Show error when trying to sort by invalid column (#1880) 2020-05-25 05:37:08 +12:00
split_by.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
split_column.rs Split split command to sub commands. 2020-05-24 02:02:44 -05:00
split_row.rs Fix warnings and split Scope (#1902) 2020-05-27 16:50:26 +12:00
str_.rs changed to-float to to-decimal (#1926) 2020-06-02 09:02:57 +12:00
sum.rs Fix warnings and split Scope (#1902) 2020-05-27 16:50:26 +12:00
touch.rs Move most of the root package into a subcrate. (#1445) 2020-03-04 13:58:20 -05:00
trim.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
uniq.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
update.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
where_.rs Remove interpretation of Primitive::Nothing as the number 0. (#1836) 2020-05-18 15:18:46 -04:00
with_env.rs Fix for inconsistency when quoted strings are used with with_env shorthand (#1900) 2020-05-26 15:03:55 -04:00
wrap.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00