nushell/crates/nu-command/src/commands
Lily Mara 1ee51f2afa
Add the load-env command (#3484)
* Add the load-env command

load-env can be used to add environment variables dynamically via an
InputStream. This allows developers to create tools that output environment
variables as key-value pairs, then have the user load those variables in using
load-env. This supplants most of the need for an `eval` command, which is
mostly used in POSIX envs for setting env vars.

Fixes #3481

* fixup! Add the load-env command
2021-05-26 06:18:20 +12:00
..
ansi Remove rest_args() from evaluated CommandArgs (#3449) 2021-05-20 10:26:23 +12:00
autoview Groupby operations on dataframes (#3473) 2021-05-23 19:37:04 +12:00
classified correctly escape pipe in windows/cmd.exe (#3489) 2021-05-25 09:19:45 -05:00
config Config commands to engine p (#3408) 2021-05-12 14:01:16 +12:00
dataframe Groupby operations on dataframes (#3473) 2021-05-23 19:37:04 +12:00
date delete crates/nu-command/src/commands/date/utc.rs (#3464) 2021-05-22 17:09:50 +12:00
drop commands to engine p (#3417) 2021-05-13 07:07:20 +12:00
each Do a bit more cleanup of block params (#3455) 2021-05-21 19:04:27 +12:00
format Make the default int an i64 (#3428) 2021-05-14 20:35:09 +12:00
hash_ Commands to engine p (#3426) 2021-05-15 16:11:07 +12:00
into error message cleanup for into string (#3488) 2021-05-25 07:49:12 -05:00
keep Do a bit more cleanup of block params (#3455) 2021-05-21 19:04:27 +12:00
math updated round to support i64 (#3451) 2021-05-20 13:59:19 -05:00
move_ Commands to engine (#3448) 2021-05-22 10:52:04 -05:00
nu Simplify down to one type of context (#3379) 2021-05-03 11:45:55 +12:00
parse Commands to engine (#3448) 2021-05-22 10:52:04 -05:00
path Implement path relative-to subcommand (#3461) 2021-05-22 09:29:40 -05:00
random Make the default int an i64 (#3428) 2021-05-14 20:35:09 +12:00
roll Commands to engine (#3448) 2021-05-22 10:52:04 -05:00
rotate Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
skip Do a bit more cleanup of block params (#3455) 2021-05-21 19:04:27 +12:00
split Simplify down to one type of context (#3379) 2021-05-03 11:45:55 +12:00
str_ nothing converted to string should return nothing and not fail (#3459) 2021-05-21 11:06:53 -05:00
table Simplify down to one type of context (#3379) 2021-05-03 11:45:55 +12:00
url_ Simplify down to one type of context (#3379) 2021-05-03 11:45:55 +12:00
all.rs Simplify expressions (#3389) 2021-05-12 13:01:48 +12:00
any.rs Do a bit more cleanup of block params (#3455) 2021-05-21 19:04:27 +12:00
append.rs A few optimisations (#3306) 2021-04-12 19:47:31 +12: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 Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
autoenv_untrust.rs Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
autoenv.rs Simplify down to one type of context (#3379) 2021-05-03 11:45:55 +12:00
benchmark.rs Commands to engine p (#3404) 2021-05-11 16:03:55 +12:00
build_string.rs engine-p: build-string remove ActionStream (#3394) 2021-05-08 16:59:12 +12:00
cal.rs Simplify down to one type of context (#3379) 2021-05-03 11:45:55 +12:00
cd.rs Simplify down to one type of context (#3379) 2021-05-03 11:45:55 +12:00
char_.rs Add path separator to char; Update char to engine-p; List all names of all possible chars (#3470) 2021-05-22 11:48:33 -05:00
chart.rs Simplify down to one type of context (#3379) 2021-05-03 11:45:55 +12:00
clear.rs Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
clip.rs Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
compact.rs Engine-p style in compact (#3325) 2021-04-19 06:40:29 +12: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 Simplify down to one type of context (#3379) 2021-05-03 11:45:55 +12:00
debug.rs Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
def.rs Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
default_context.rs Add the load-env command (#3484) 2021-05-26 06:18:20 +12:00
default.rs Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
describe.rs Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
do_.rs Add params to do (#3477) 2021-05-24 09:21:41 +12:00
du.rs Simplify down to one type of context (#3379) 2021-05-03 11:45:55 +12:00
echo.rs Make the default int an i64 (#3428) 2021-05-14 20:35:09 +12:00
empty.rs Do a bit more cleanup of block params (#3455) 2021-05-21 19:04:27 +12:00
enter.rs Use enginep style in enter command (#3469) 2021-05-22 09:27:42 -05:00
every.rs Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
exec.rs Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
exit.rs Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
first.rs Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
flatten.rs Simplify expressions (#3389) 2021-05-12 13:01:48 +12:00
from_csv.rs Move to* and from* to engine-p (#3320) 2021-04-15 19:43:33 +12:00
from_delimited_data.rs Move to* and from* to engine-p (#3320) 2021-04-15 19:43:33 +12:00
from_eml.rs Move to* and from* to engine-p (#3320) 2021-04-15 19:43:33 +12:00
from_ics.rs Move to* and from* to engine-p (#3320) 2021-04-15 19:43:33 +12:00
from_ini.rs Move to* and from* to engine-p (#3320) 2021-04-15 19:43:33 +12:00
from_json.rs Make the default int an i64 (#3428) 2021-05-14 20:35:09 +12:00
from_ods.rs Move to* and from* to engine-p (#3320) 2021-04-15 19:43:33 +12:00
from_ssv.rs Move to* and from* to engine-p (#3320) 2021-04-15 19:43:33 +12:00
from_toml.rs Move to* and from* to engine-p (#3320) 2021-04-15 19:43:33 +12:00
from_tsv.rs Move to* and from* to engine-p (#3320) 2021-04-15 19:43:33 +12:00
from_url.rs Move to* and from* to engine-p (#3320) 2021-04-15 19:43:33 +12:00
from_vcf.rs Move to* and from* to engine-p (#3320) 2021-04-15 19:43:33 +12:00
from_xlsx.rs Move to* and from* to engine-p (#3320) 2021-04-15 19:43:33 +12:00
from_xml.rs Move to* and from* to engine-p (#3320) 2021-04-15 19:43:33 +12:00
from_yaml.rs Move to* and from* to engine-p (#3320) 2021-04-15 19:43:33 +12:00
from.rs Simplify down to one type of context (#3379) 2021-05-03 11:45:55 +12:00
get.rs Clippy fixes for new Rust version (#3392) 2021-05-07 07:58:21 +12:00
group_by_date.rs Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
group_by.rs port group-by to engine-p (#3458) 2021-05-21 21:19:43 -05:00
headers.rs Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
help.rs Simplify down to one type of context (#3379) 2021-05-03 11:45:55 +12:00
histogram.rs Clippy fixes for new Rust version (#3392) 2021-05-07 07:58:21 +12:00
history.rs Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
if_.rs Fix external redirect (#3345) 2021-04-22 08:54:34 +12:00
insert.rs Do a bit more cleanup of block params (#3455) 2021-05-21 19:04:27 +12:00
kill.rs Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
last.rs Make the default int an i64 (#3428) 2021-05-14 20:35:09 +12:00
length.rs Make the default int an i64 (#3428) 2021-05-14 20:35:09 +12:00
let_.rs Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
let_env.rs Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
lines.rs Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
load_env.rs Add the load-env command (#3484) 2021-05-26 06:18:20 +12:00
ls.rs Simplify down to one type of context (#3379) 2021-05-03 11:45:55 +12:00
macros.rs Simplify down to one type of context (#3379) 2021-05-03 11:45:55 +12:00
merge.rs Fix external redirect (#3345) 2021-04-22 08:54:34 +12:00
mkdir.rs Simplify down to one type of context (#3379) 2021-05-03 11:45:55 +12:00
next.rs Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
nth.rs Make nth more stream-able (#3330) 2021-04-19 19:45:12 +12:00
open.rs Simplify down to one type of context (#3379) 2021-05-03 11:45:55 +12:00
pivot.rs Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
prepend.rs A few optimisations (#3306) 2021-04-12 19:47:31 +12:00
prev.rs Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
pwd.rs Simplify down to one type of context (#3379) 2021-05-03 11:45:55 +12:00
range.rs Negative indexing for range (#3427) 2021-05-17 15:08:47 +12:00
reduce.rs Do a bit more cleanup of block params (#3455) 2021-05-21 19:04:27 +12:00
reject.rs Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
rename.rs Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
reverse.rs Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
rm.rs Simplify down to one type of context (#3379) 2021-05-03 11:45:55 +12:00
run_external.rs don't let externals break ansi escapes (#3438) 2021-05-17 18:01:34 -05:00
save.rs Simplify down to one type of context (#3379) 2021-05-03 11:45:55 +12:00
select.rs Move to* and from* to engine-p (#3320) 2021-04-15 19:43:33 +12:00
seq_dates.rs Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
seq.rs make seq more nu-like by returning numbers when possible (#3409) 2021-05-11 12:02:16 -05:00
shells.rs Simplify down to one type of context (#3379) 2021-05-03 11:45:55 +12:00
shuffle.rs Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
size.rs Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
sleep.rs Split unit into duration and filesize (#3453) 2021-05-21 13:21:46 +12:00
sort_by.rs Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
source.rs Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
split_by.rs Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
tags.rs Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
termsize.rs Make the default int an i64 (#3428) 2021-05-14 20:35:09 +12:00
to_csv.rs Move to* and from* to engine-p (#3320) 2021-04-15 19:43:33 +12:00
to_delimited_data.rs Make the default int an i64 (#3428) 2021-05-14 20:35:09 +12:00
to_html.rs add nu-pretty-hex, add into binary, update binaryview (#3370) 2021-05-01 11:12:25 -05:00
to_json.rs Groupby operations on dataframes (#3473) 2021-05-23 19:37:04 +12:00
to_md.rs Simplify expressions (#3389) 2021-05-12 13:01:48 +12:00
to_toml.rs Groupby operations on dataframes (#3473) 2021-05-23 19:37:04 +12:00
to_tsv.rs Move to* and from* to engine-p (#3320) 2021-04-15 19:43:33 +12:00
to_url.rs Move to* and from* to engine-p (#3320) 2021-04-15 19:43:33 +12:00
to_xml.rs Move to* and from* to engine-p (#3320) 2021-04-15 19:43:33 +12:00
to_yaml.rs Groupby operations on dataframes (#3473) 2021-05-23 19:37:04 +12:00
to.rs Simplify down to one type of context (#3379) 2021-05-03 11:45:55 +12:00
touch.rs Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
uniq.rs Groupby operations on dataframes (#3473) 2021-05-23 19:37:04 +12:00
update.rs Do a bit more cleanup of block params (#3455) 2021-05-21 19:04:27 +12:00
version.rs ichwh removed (#3349) 2021-04-23 05:14:20 +12:00
where_.rs Do a bit more cleanup of block params (#3455) 2021-05-21 19:04:27 +12:00
which_.rs Simplify down to one type of context (#3379) 2021-05-03 11:45:55 +12:00
with_env.rs Fix external redirect (#3345) 2021-04-22 08:54:34 +12:00
wrap.rs Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00