nushell/crates/nu-command/src/commands
Leonhard Kipp c42b588782
Refactor nu-cli/env* (#3041)
* Revert "History, more test coverage improvements, and refactorings. (#3217)"

This reverts commit 8fc8fc89aa.

* Add tests

* Refactor .nu-env

* Change logic of Config write to logic of read()

* Fix reload always appends to old vars

* Fix reload always takes last_modified of global config

* Add reload_config in evaluation context

* Reload config after writing to it in cfg set / cfg set_into

* Add --no-history to cli options

* Use --no-history in tests

* Add comment about maybe_print_errors

* Get ctrl_exit var from context.global_config

* Use context.global_config in command "config"

* Add Readme in engine how env vars are now handled

* Update docs from autoenv command

* Move history_path from engine to nu_data

* Move load history out of if

* No let before return

* Add import for indexmap
2021-03-31 18:52:34 +13:00
..
ansi move bel and backspace to char since they're not ansi (#3144) 2021-03-09 22:34:51 +13:00
autoview Refactor nu-cli/env* (#3041) 2021-03-31 18:52:34 +13:00
classified Refactor nu-cli/env* (#3041) 2021-03-31 18:52:34 +13:00
config Refactor nu-cli/env* (#3041) 2021-03-31 18:52:34 +13:00
date update date to-timezone usage (#3223) 2021-03-28 18:41:42 -05:00
drop Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
each Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
format Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
hash_ Add basic support for md5 hashing strings and binary data (#3197) 2021-03-21 07:48:53 +13:00
keep Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
math Refactor nu-cli/env* (#3041) 2021-03-31 18:52:34 +13:00
move_ Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
nu Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
parse Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
path Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
random Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
roll Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
rotate 90 degree table rotations (clockwise and counter-clockwise) (#3086) 2021-02-22 06:56:34 -05:00
skip Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
split Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
str_ add support for timestamp-based time conversion by specifying timezone (#3207) 2021-03-24 08:08:23 -05:00
table Move script to nu engine (#3092) 2021-03-12 18:20:54 +13:00
url_ Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
append.rs Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
args.rs nu-cli refactor moving commands into their own crate nu-command (#2910) 2021-01-12 17:59:53 +13:00
autoenv_trust.rs Refactor nu-cli/env* (#3041) 2021-03-31 18:52:34 +13:00
autoenv_untrust.rs Refactor nu-cli/env* (#3041) 2021-03-31 18:52:34 +13:00
autoenv.rs Refactor nu-cli/env* (#3041) 2021-03-31 18:52:34 +13:00
benchmark.rs Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
build_string.rs Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
cal.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
cd.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
char_.rs added the ability to create multi-byte unicode chars like emoji (#3195) 2021-03-18 13:42:39 -05:00
chart.rs Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
clear.rs Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
clip.rs Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
compact.rs Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
constants.rs nu-cli refactor moving commands into their own crate nu-command (#2910) 2021-01-12 17:59:53 +13:00
cp.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
debug.rs Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
def.rs nu-cli refactor moving commands into their own crate nu-command (#2910) 2021-01-12 17:59:53 +13:00
default_context.rs Refactor nu-cli/env* (#3041) 2021-03-31 18:52:34 +13:00
default.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
describe.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
do_.rs Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
du.rs Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
echo.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
empty.rs Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
enter.rs Refactor nu-cli/env* (#3041) 2021-03-31 18:52:34 +13:00
every.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
exec.rs Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
exit.rs Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
first.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
flatten.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
from_csv.rs Fix warnings for Rust 1.51 (#3214) 2021-03-26 21:26:57 +13:00
from_delimited_data.rs add "-0" as short for --headerless in "from" commands (#3042) 2021-02-22 20:25:17 +13:00
from_eml.rs Fix warnings for Rust 1.51 (#3214) 2021-03-26 21:26:57 +13:00
from_ics.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
from_ini.rs Fix warnings for Rust 1.51 (#3214) 2021-03-26 21:26:57 +13:00
from_json.rs Fix warnings for Rust 1.51 (#3214) 2021-03-26 21:26:57 +13:00
from_ods.rs Fix warnings for Rust 1.51 (#3214) 2021-03-26 21:26:57 +13:00
from_ssv.rs Fix warnings for Rust 1.51 (#3214) 2021-03-26 21:26:57 +13:00
from_toml.rs Fix warnings for Rust 1.51 (#3214) 2021-03-26 21:26:57 +13:00
from_tsv.rs Fix warnings for Rust 1.51 (#3214) 2021-03-26 21:26:57 +13:00
from_url.rs Fix warnings for Rust 1.51 (#3214) 2021-03-26 21:26:57 +13:00
from_vcf.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
from_xlsx.rs Fix warnings for Rust 1.51 (#3214) 2021-03-26 21:26:57 +13:00
from_xml.rs Fix warnings for Rust 1.51 (#3214) 2021-03-26 21:26:57 +13:00
from_yaml.rs Fix warnings for Rust 1.51 (#3214) 2021-03-26 21:26:57 +13:00
from.rs Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
get.rs Soft rest arguments column path cohersions. (#3016) 2021-02-06 20:05:47 -05:00
group_by_date.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
group_by.rs Ensure selection of columns are done once per column (#3012) 2021-02-05 19:34:26 -05:00
headers.rs fixed typo in help text (#3216) 2021-03-26 08:11:41 -05:00
help.rs Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
histogram.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
history.rs Refactor nu-cli/env* (#3041) 2021-03-31 18:52:34 +13:00
if_.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
insert.rs Ensure selection of columns are done once per column (#3012) 2021-02-05 19:34:26 -05:00
into_int.rs Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
kill.rs Add --signal option to kill command (#3077) (#3079) 2021-03-15 13:10:52 +13:00
last.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
length.rs Rename count to length (#3166) 2021-03-14 10:46:40 +13:00
let_.rs nu-cli refactor moving commands into their own crate nu-command (#2910) 2021-01-12 17:59:53 +13:00
let_env.rs nu-cli refactor moving commands into their own crate nu-command (#2910) 2021-01-12 17:59:53 +13:00
lines.rs Lines no longer treats a text buffer as a line (#3153) 2021-03-11 11:35:15 +13:00
ls.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
macros.rs nu-cli refactor moving commands into their own crate nu-command (#2910) 2021-01-12 17:59:53 +13:00
merge.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
mkdir.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
next.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
nth.rs Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
open.rs Make opening a directory list its contents (#3118) 2021-03-14 10:47:31 +13:00
pivot.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
prepend.rs Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
prev.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
pwd.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
range.rs Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
reduce.rs Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
reject.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
rename.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
reverse.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
rm.rs Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
run_external.rs Refactor nu-cli/env* (#3041) 2021-03-31 18:52:34 +13:00
save.rs Refactor nu-cli/env* (#3041) 2021-03-31 18:52:34 +13:00
select.rs Soft rest arguments column path cohersions. (#3016) 2021-02-06 20:05:47 -05:00
seq_dates.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
seq.rs Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
shells.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
shuffle.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
size.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
sleep.rs Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
sort_by.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
source.rs Move script to nu engine (#3092) 2021-03-12 18:20:54 +13:00
split_by.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
tags.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
termsize.rs change help text (#3054) 2021-02-13 13:20:34 -06:00
to_csv.rs Fix warnings for Rust 1.51 (#3214) 2021-03-26 21:26:57 +13:00
to_delimited_data.rs add "-0" as short for --headerless in "from" commands (#3042) 2021-02-22 20:25:17 +13:00
to_html.rs Fix warnings for Rust 1.51 (#3214) 2021-03-26 21:26:57 +13:00
to_json.rs Fix warnings for Rust 1.51 (#3214) 2021-03-26 21:26:57 +13:00
to_md.rs Minimal markdown syntax per element support. (#2997) 2021-02-02 12:09:19 -05:00
to_toml.rs Fix warnings for Rust 1.51 (#3214) 2021-03-26 21:26:57 +13:00
to_tsv.rs Fix warnings for Rust 1.51 (#3214) 2021-03-26 21:26:57 +13:00
to_url.rs Fix warnings for Rust 1.51 (#3214) 2021-03-26 21:26:57 +13:00
to_xml.rs Fix warnings for Rust 1.51 (#3214) 2021-03-26 21:26:57 +13:00
to_yaml.rs Fix warnings for Rust 1.51 (#3214) 2021-03-26 21:26:57 +13:00
to.rs Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
touch.rs Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
uniq.rs Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
update.rs Ensure selection of columns are done once per column (#3012) 2021-02-05 19:34:26 -05:00
version.rs Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
where_.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
which_.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
with_env.rs Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
wrap.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00