Luccas Mateus de Medeiros Gomes
aa5ab8a666
final math abs
2021-10-24 20:58:18 -03:00
Michael Angerman
4bb2406772
Merge branch 'main' into interactive_helper
2021-10-23 18:09:20 -07:00
JT
1296100d31
Clippy fixes
2021-10-24 12:40:27 +13:00
Michael Angerman
297f3ba575
clean up filesystem by moving get_interactive_confirmation into util.rs
2021-10-23 10:57:45 -07:00
Luccas Mateus
51bea2e884
still not working
2021-10-21 12:29:57 -03:00
Luccas Mateus
b1d7e3aa49
starting to build this
2021-10-21 11:52:26 -03:00
JT
b322a12f58
Add more helper functions
2021-10-20 18:58:25 +13:00
JT
1b745015c3
little cleanup
2021-10-16 07:51:25 +13:00
JT
68601629c0
Fix warning
2021-10-16 07:39:36 +13:00
JT
82b0415d92
Try out select completions from dialoguer
2021-10-16 07:37:58 +13:00
JT
bd5009a865
Merge pull request #235 from GabrielBG0/interactive-flag
...
cp, mv, and rm commands need to support -i flag
2021-10-16 07:17:03 +13:00
Gabriel B Gutierrez
5bd20e4d36
fix clippy warnings
2021-10-15 12:12:17 -03:00
Gabriel B Gutierrez
28b26ca44d
supress warnings
2021-10-14 18:14:59 -03:00
Gabriel B Gutierrez
b3192ddc97
fix operating more than 2 file at the same time
2021-10-14 17:03:39 -03:00
Gabriel B Gutierrez
8c2ae1eed1
-i flag finished, lacking tests
2021-10-14 14:54:51 -03:00
Darren Schroeder
fdf6bbb6fc
clean up some todo comments in grid
2021-10-14 08:03:20 -05:00
JT
0d7b10fd0b
Remove bad fixmes
2021-10-14 17:43:49 +13:00
Gabriel B Gutierrez
9ea7cdfc33
-i flag on signaure
2021-10-13 19:29:08 -03:00
JT
dcda7a4e50
Touchups to help
2021-10-14 06:58:39 +13:00
JT
fdd2c35fd9
Add the default help flag
2021-10-14 06:53:27 +13:00
JT
5c46138563
Some touchups to size
2021-10-13 17:15:37 +13:00
JT
ef58348ea2
Merge branch 'main' into load_config
2021-10-13 16:59:09 +13:00
JT
a760e46c1c
Add config file loading
2021-10-13 16:57:05 +13:00
Justin
f5ce63ad55
Merge branch 'nushell:main' into main
2021-10-12 14:56:45 -07:00
xiuxiu62
151bdc8910
drop unused imports
2021-10-12 14:56:29 -07:00
xiuxiu62
2b99e49792
add strings/size command
2021-10-12 14:55:29 -07:00
xiuxiu62
94d00b28b7
add unicode-segmentation crate
2021-10-12 14:55:07 -07:00
xiuxiu62
8fee0b32e7
impl Value::Record from HashMap<String, Value>
2021-10-12 14:54:28 -07:00
Darren Schroeder
ffd922f393
add ability to parse strings like "100kib" and "100 kib"
2021-10-12 15:22:12 -05:00
JT
6024a001b4
Clarify todo/fixmes
2021-10-13 06:44:23 +13:00
JT
aea8627c30
Prevent invalid var names
2021-10-12 18:08:55 +13:00
JT
5f14faf4b4
Custom switch support
2021-10-12 17:49:17 +13:00
JT
c8277a3da9
Do rest args
2021-10-12 16:28:39 +13:00
JT
96419f168b
Also fix the flag params
2021-10-12 10:17:45 +13:00
JT
1f45304cf9
Fix parser when def has missing params
2021-10-12 09:58:38 +13:00
JT
63e3552eef
Add the remaining missing operators
2021-10-12 09:35:12 +13:00
JT
1a15f30eb8
Error on missing column during cell path
2021-10-12 08:51:54 +13:00
JT
0676f32509
Merge branch 'main' into earlier_errors
2021-10-12 08:33:19 +13:00
Darren Schroeder
ea9aad9b5d
fix to allow windows to compile
2021-10-11 13:58:10 -05:00
JT
38bc394a12
Expose errors early when possible
2021-10-12 07:45:31 +13:00
JT
d33a9549b5
Add serialize/deserialize for streams
2021-10-12 07:12:47 +13:00
JT
c4fe190cee
Merge pull request #119 from nushell/error_improvement
...
Error improvement
2021-10-12 07:08:16 +13:00
JT
ba73e0eb06
Another early emit
2021-10-12 06:37:22 +13:00
JT
0504a7a776
Make errors emit first
2021-10-12 06:35:40 +13:00
Darren Schroeder
0e36b4b1bd
type-o
...
changes seperator to separator
2021-10-11 09:32:06 -05:00
JT
4d0a253924
Merge main
2021-10-11 14:57:39 +13:00
JT
c3a032950d
Add initial batch of into conversions
2021-10-11 14:56:19 +13:00
xiuxiu62
491efab09b
remove open and save
2021-10-10 13:24:54 -07:00
Justin
7cafdc9675
Merge branch 'nushell:main' into main
2021-10-10 13:15:54 -07:00
JT
ecee5a9845
Update chars.rs
2021-10-11 07:28:33 +13:00
Jakub Žádník
77c520e10b
Make predeclarations scoped; Add hiding tests
...
In some rare cases, the global predeclarations would clash, for example:
> module spam { export def foo [] { "foo" } }; def foo [] { "bar" }
In the example, the `foo [] { "bar" }` would get predeclared first, then
the predeclaration would be overwritten and consumed by `foo [] {"foo"}`
inside the module, then when parsing the actual `foo [] { "bar" }`, it
would not find its predeclaration.
2021-10-10 14:31:13 +03:00
Jakub Žádník
40741254f6
Rewrite hiding system
...
Hiding definitions now should work correctly with repeated use of 'use',
'def' and 'hide' keywords.
The key change is that 'hide foo' will hide all definitions of foo
that were defined/used within the scope (those from other scopes are
still available). This makes the logic simpler and I found it leads to a
simpler mental map: you don't need to remember the order of defined/used
commands withing the scope -- it just hides all.
2021-10-10 13:18:47 +03:00
jacremer
0b35905ce9
revert temp val
2021-10-09 22:43:50 -07:00
xiuxiu62
beb15dcc77
cleanup + clippy suggestions
2021-10-09 21:17:08 -07:00
xiuxiu62
97ca242634
add rm command + stubs for open and save
2021-10-09 21:13:15 -07:00
Arthur Targaryen
a0a63c966f
Add inline attribute and address warning
2021-10-09 19:44:03 +02:00
Arthur Targaryen
75de7f7e61
Implement PartialOrd
for Value::Stream
2021-10-09 19:40:47 +02:00
Arthur Targaryen
4e443b2088
Change helper method visibility
2021-10-09 19:40:47 +02:00
Arthur Targaryen
9e7e8ed48f
Handle not-in
operator
2021-10-09 19:40:47 +02:00
Arthur Targaryen
5f9ad0947d
Fix Range::contains
2021-10-09 19:40:47 +02:00
Arthur Targaryen
4235cf1191
Implement and use PartialOrd
for Value
2021-10-09 19:40:45 +02:00
Arthur Targaryen
357b9ccaa9
Remove unused import
2021-10-09 19:27:54 +02:00
Arthur Targaryen
d1f0740765
Refactor in
operator for Range
2021-10-09 19:27:54 +02:00
Arthur Targaryen
29cbcb8459
Implement RangeIterator::contains
2021-10-09 19:27:54 +02:00
Arthur Targaryen
7f06d6144f
Support in
operator for record and value stream
2021-10-09 19:27:54 +02:00
Arthur Targaryen
7db6b876ab
Simplify Result<Value, _>
comparaison using matches!
2021-10-09 19:27:54 +02:00
Arthur Targaryen
d3bc096d47
Handle reverse ranges
...
This is really ugly and should be refactored.
2021-10-09 19:27:54 +02:00
Arthur Targaryen
8783cf0138
Add basic in
operator support
2021-10-09 19:27:54 +02:00
JT
8df9ea6c68
Add a couple more tests to for
2021-10-10 05:58:33 +13:00
JT
5d36d37d20
Merge branch 'main' into fix_for
2021-10-10 05:20:50 +13:00
JT
789fc30bf9
oops forgot file
2021-10-10 05:14:02 +13:00
JT
e4ce41ba15
Fix the for loop to create vars
2021-10-10 05:10:46 +13:00
Fernando Herrera
8756e88e3c
command split
2021-10-09 14:28:09 +01:00
Fernando Herrera
41366f6cc4
Merge branch 'main' of https://github.com/nushell/engine-q into unit-test
2021-10-09 14:17:07 +01:00
Fernando Herrera
e3e4ae0591
example unit test
2021-10-09 14:10:10 +01:00
JT
2cd1f634d0
Add map and flat_map to value
2021-10-09 19:20:32 +13:00
JT
5c29a83a7a
Add tests
2021-10-09 15:45:25 +13:00
JT
60f9fe1aa4
Port split column and split row
2021-10-09 15:41:39 +13:00
JT
44fbf0fce3
Merge pull request #108 from nushell/help_and_start_split
...
Port help and start porting split
2021-10-09 14:07:13 +13:00
JT
4ddc953e38
Port help and start porting split
2021-10-09 14:02:01 +13:00
JT
64d83142c3
More external cleanup
2021-10-09 11:30:10 +13:00
JT
dea9c1482b
Allow vars and subexprs in extern args
2021-10-09 10:51:47 +13:00
JT
1b977c658c
Improve the alias expansion
2021-10-09 08:38:42 +13:00
Darren Schroeder
42113a767a
allow one to specify a custom separator
2021-10-08 10:15:07 -05:00
Darren Schroeder
c636c30a19
added a switch to enable coloring
2021-10-08 09:53:26 -05:00
Darren Schroeder
5ddf0d209d
respect lscolors env var; measure width minus ansi
2021-10-08 09:40:20 -05:00
Darren Schroeder
1a3a837f3e
Merge pull request #96 from fdncred/ls_grid_output
...
output `ls` as a grid vs table
2021-10-08 08:23:15 -05:00
Darren Schroeder
c4dabe8327
some cleanup, extra_usage
2021-10-08 08:14:32 -05:00
xiuxiu62
bdfe8c0888
add mkdir command
2021-10-07 15:20:23 -07:00
Darren Schroeder
c4977ae143
clippy
2021-10-07 16:59:01 -05:00
Darren Schroeder
54a41c535b
only print items with name
column
2021-10-07 16:50:27 -05:00
xiuxiu62
8550f50522
substitute idiomatic call flag check
2021-10-07 14:36:47 -07:00
xiuxiu62
e8e1ead99d
change diagnostic code on CreateNotPossible
2021-10-07 14:20:03 -07:00
xiuxiu62
adabc839bf
add touch command
2021-10-07 14:18:03 -07:00
Darren Schroeder
698f768a06
Merge branch 'main' into ls_grid_output
2021-10-07 11:07:21 -05:00
Darren Schroeder
ae8b315e76
added list output
2021-10-07 11:00:49 -05:00
Darren Schroeder
58d73d4c23
moved grid
to it's own crate named nu-term-grid
2021-10-07 10:32:39 -05:00
JT
7eb022b58c
Adapt tk's work for a source command
2021-10-06 15:29:05 +13:00
Tanishq Kancharla
d481d5ca96
Merge branch 'main' of https://github.com/nushell/engine-q into source-command
2021-10-05 22:16:07 -04:00
Tanishq Kancharla
996ee363b7
comments
2021-10-05 22:03:18 -04:00