nushell/crates/nu-command/src/filesystem
Michael Angerman 95cd9dd2b2
move BufferedReader out of nu-command (#7697)
src/main.rs has a dependency on BufferedReader
which is currently located in nu_command.

I am moving BufferedReader to a more relevant
location (crate) which will allow / eliminate main's dependency
on nu_command in a benchmark / testing environment...

now that @rgwood  has landed benches I want
to start experimenting with benchmarks related
to the parser.

For benchmark purposes when dealing with parsing
you need a very simple set of commands that show
how well the parser is doing, in other words
just the core commands... Not all of nu_command...

Having a smaller nu binary when running the benchmark CI
would enable building nushell quickly, yet still show us
how well the parser is performing...

Once this PR lands the only dependency main will have
on nu_command is create_default_context ---
meaning for benchmark purposes we can swap in a tiny
crate of commands instead of the gigantic nu_command
which has its "own" create_default_context...

It will also enable other crates going forward to
use BufferedReader.  Right now it is not accessible
to other lower level crates because it is located in a
"top of the stack crate".
2023-01-06 15:22:17 -08:00
..
cd.rs Fix typos by codespell (#7600) 2022-12-26 02:31:26 -05:00
cd_query.rs Fix typos by codespell (#7600) 2022-12-26 02:31:26 -05:00
cp.rs some filesystem command signatures (#7464) 2022-12-19 13:40:57 +01:00
glob.rs some filesystem command signatures (#7464) 2022-12-19 13:40:57 +01:00
ls.rs Fix usage of deprecated C-style logical and (#7627) 2022-12-29 16:47:33 +01:00
mkdir.rs some filesystem command signatures (#7464) 2022-12-19 13:40:57 +01:00
mod.rs move BufferedReader out of nu-command (#7697) 2023-01-06 15:22:17 -08:00
mv.rs some filesystem command signatures (#7464) 2022-12-19 13:40:57 +01:00
open.rs move BufferedReader out of nu-command (#7697) 2023-01-06 15:22:17 -08:00
rm.rs Fix usage of deprecated C-style logical and (#7627) 2022-12-29 16:47:33 +01:00
save.rs Fix save error handling (#7608) 2023-01-03 14:22:28 +01:00
start.rs let start open anything and everything (#7580) 2023-01-03 10:47:37 -08:00
touch.rs Standardise the use of ShellError::UnsupportedInput and ShellError::TypeMismatch and add spans to every instance of the former (#7217) 2022-12-23 01:48:53 -05:00
util.rs move BufferedReader out of nu-command (#7697) 2023-01-06 15:22:17 -08:00
watch.rs Standardise the use of ShellError::UnsupportedInput and ShellError::TypeMismatch and add spans to every instance of the former (#7217) 2022-12-23 01:48:53 -05:00