nushell/crates/nu-cli/src/commands
Leonhard Kipp c6fe58467b
Change alias shape inference to proposal of RFC#4 (#2685)
* Change alias shape inference to proposal of RFC#4

* Remove commented code

* Fix typo

* Change comment to be more informative

* Make match statement to lookup in table

* Remove resolved question

https://github.com/nushell/nushell/pull/2685#discussion_r509832054

* Pick ...or_insert_dependency functions into pieces

Previously there was get_shape_of_expr_or_insert dependency, now there is
get_shape_of_expr and get_shape_of_expr_or_insert_dependency

2 new functions have been added: get_result_shape_of_math_expr and
get_result_shape_of_math_expr_or_insert_dependency

* Remove flattening of deep binary expressions

Previously deep binary expressions have been flattened through the insertion of
fake vars. This logic was quite complicated. Now if a variable depends on the
result shape of a binary expression and the result shape can't be computed,
the variable simply depends on the whole binary.

* Change Expression::Variable(Variable::It(...)) to Expression::Variable(...)

* Simplify get_result_shapes_in_math_expr

* Simplify infer_shapes_in_binary_expr

* Clarify comment

* Clarify comment

* Fix clippy lint

* Move check for real var into checked_insert

* Remove comment

* Rename var
2020-10-29 06:49:38 +13:00
..
autoview Fix clippy lints (#2651) 2020-10-09 10:47:51 +13:00
classified Change alias shape inference to proposal of RFC#4 (#2685) 2020-10-29 06:49:38 +13:00
config Allow config to work with column paths. (#2653) 2020-10-08 20:04:19 -05:00
date Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
each Improve parameter inference for blocks (#2708) 2020-10-28 07:47:11 +13:00
format Remove it expansion (#2701) 2020-10-26 19:55:52 +13:00
keep Remove it expansion (#2701) 2020-10-26 19:55:52 +13:00
math Add rounding functionalties (#2672) 2020-10-22 13:18:27 +13:00
move_ Move command changes. Refactorings. (#2683) 2020-10-20 04:07:13 -05:00
nu Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
parse Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
path Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
random Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
skip Remove it expansion (#2701) 2020-10-26 19:55:52 +13:00
split Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
str_ Radix added to str decimal conversion (#2696) 2020-10-26 16:35:18 +13:00
table add heavy & none table border options (#2686) 2020-10-21 08:53:08 -05:00
url_ Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
alias.rs Change alias shape inference to proposal of RFC#4 (#2685) 2020-10-29 06:49:38 +13:00
ansi.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
append.rs Allow appending table literals. (#2693) 2020-10-22 03:26:30 -05:00
args.rs Move most of the root package into a subcrate. (#1445) 2020-03-04 13:58:20 -05:00
autoenv_trust.rs Silence Rust 1.45 Clippy warnings (#2196) 2020-07-18 05:57:15 +12:00
autoenv_untrust.rs Silence Rust 1.45 Clippy warnings (#2196) 2020-07-18 05:57:15 +12:00
autoenv.rs Run exitscripts in original dir (#2352) 2020-08-18 17:36:09 +12:00
benchmark.rs Refactor scope (#2602) 2020-09-26 11:40:02 +12:00
build_string.rs Move nu-data out of nu-cli (#2369) 2020-08-18 19:00:02 +12:00
cal.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
cd.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
char_.rs add unicode to char command to print any unicode character (#2709) 2020-10-28 09:08:09 -05:00
chart.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
clear.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
clip.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
command.rs Refactor scope (#2602) 2020-09-26 11:40:02 +12:00
compact.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
constants.rs Convert open/fetch to stream (#2028) 2020-07-04 07:53:20 +12:00
count.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
cp.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
debug.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
default.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
describe.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
do_.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
drop.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
du.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
echo.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
empty.rs Remove it expansion (#2701) 2020-10-26 19:55:52 +13:00
enter.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
every.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
exec.rs Context cleanup (#2581) 2020-09-20 09:29:51 +12:00
exit.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
first.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
flatten.rs Remove it expansion (#2701) 2020-10-26 19:55:52 +13:00
from_csv.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
from_delimited_data.rs Update bigint/bigdecimal (#2585) 2020-09-22 05:28:31 +12:00
from_eml.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
from_ics.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
from_ini.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
from_json.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
from_ods.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
from_ssv.rs Fix clippy lints (#2651) 2020-10-09 10:47:51 +13:00
from_toml.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
from_tsv.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
from_url.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
from_vcf.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
from_xlsx.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
from_xml.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
from_yaml.rs Move command changes. Refactorings. (#2683) 2020-10-20 04:07:13 -05:00
from.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
get.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
group_by_date.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
group_by.rs Add in parameter inference for blocks (#2706) 2020-10-27 20:37:35 +13:00
headers.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
help.rs Add tests for get_data_by_key (#2658) 2020-10-12 22:46:58 -05:00
histogram.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
history.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
if_.rs Remove it expansion (#2701) 2020-10-26 19:55:52 +13:00
insert.rs Remove it expansion (#2701) 2020-10-26 19:55:52 +13:00
into_int.rs Remove it expansion (#2701) 2020-10-26 19:55:52 +13:00
kill.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
last.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
lines.rs Use iterator chain instead of string concat. (#2655) 2020-10-10 18:30:48 +13:00
ls.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
macros.rs Move nu-data out of nu-cli (#2369) 2020-08-18 19:00:02 +12:00
merge.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
mkdir.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
next.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
nth.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
open.rs Remove it expansion (#2701) 2020-10-26 19:55:52 +13:00
pivot.rs Add tests for get_data_by_key (#2658) 2020-10-12 22:46:58 -05:00
prepend.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
prev.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
pwd.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
range.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
reduce.rs Remove it expansion (#2701) 2020-10-26 19:55:52 +13:00
reject.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
rename.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
reverse.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
rm.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
run_alias.rs Change alias shape inference to proposal of RFC#4 (#2685) 2020-10-29 06:49:38 +13:00
run_external.rs Refactor scope (#2602) 2020-09-26 11:40:02 +12:00
save.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
select.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
shells.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
shuffle.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
size.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
sleep.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
sort_by.rs Add tests for get_data_by_key (#2658) 2020-10-12 22:46:58 -05:00
split_by.rs Move command changes. Refactorings. (#2683) 2020-10-20 04:07:13 -05:00
tags.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
to_csv.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
to_delimited_data.rs Add tests for get_data_by_key (#2658) 2020-10-12 22:46:58 -05:00
to_html.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
to_json.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
to_md.rs Refactor to md and Add Padding for Pretty Flag (#2678) 2020-10-19 19:58:24 +13:00
to_toml.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
to_tsv.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
to_url.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
to_xml.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
to_yaml.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
to.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
touch.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
uniq.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
update.rs Remove it expansion (#2701) 2020-10-26 19:55:52 +13:00
version.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
where_.rs Remove it expansion (#2701) 2020-10-26 19:55:52 +13:00
which_.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
with_env.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00
wrap.rs Nushell internal commands. Anchor locations tracker surveying. (#2635) 2020-10-03 09:06:02 -05:00