2
0
Fork 0
mirror of https://github.com/nushell/nushell synced 2025-02-15 21:48:29 +00:00
Commit graph

118 commits

Author SHA1 Message Date
JT
4f43d75130
Simplify group/window into their own commands () 2022-03-06 20:01:29 -05:00
JT
e64ca97fe2
move scope variable into nu variable () 2022-03-04 11:36:11 -05:00
JT
7d0531d270
Add support for escape characters, make nuon a JSON superset ()
* WIP

* Finish adding escape support in strings

* Try to fix windows
2022-03-03 13:14:03 -05:00
JT
96a1bf5f8d
Experiment: Allow both $true/true and $false/false ()
* Change true/false to keywords

* oops, clippy

* Both kinds of bools

* Add in some boolean variables

* disable py virtualenv test for now
2022-03-02 19:55:03 -05:00
Justin Ma
42f1874a3a
Update some examples and docs ()
* Update some examples and docs

* Update now.rs

* Update date_now.md

Co-authored-by: JT <547158+jntrnr@users.noreply.github.com>
2022-03-01 08:05:29 -05:00
JT
cb5c61d217
Fix open ended ranges ()
* Make open ended ranges more open ended

* Add test
2022-02-28 11:15:31 -05:00
JT
7819210037
Add shortcircuiting boolean operators () 2022-02-27 17:02:53 -05:00
JT
4b18fdcc6e
Date literals ()
* Date literals

* update deps

* Add date+duration
2022-02-23 21:02:48 -05:00
JT
9888f8f298
Add pipeline redirection support ()
* redirection

* Remove commented-out

* fix tests

* more fixes
2022-02-21 17:22:21 -05:00
JT
6d4784a7c1
Make 'each' implicitly filter out nothings ()
* Make 'each' implicitly filter out nothings

* another example
2022-02-21 15:49:08 -05:00
JT
a2c4c92fce
Remove record iteration ()
* Remove record iteration

* Remove test
2022-02-21 09:12:04 -05:00
Joseph T. Lyons
4f367a59de
Strip trailing whitespace in files ()
* Strip trailing whitespace in rs files

* Strip trailing whitespace in toml files

* Strip trailing whitespace in md files

* Strip trailing whitespace in nu files
2022-02-21 08:38:15 -05:00
Justin Ma
aea4355d04
refactor: change column names from 'Column*' to 'column*' () 2022-02-19 19:26:47 -05:00
JT
786e4ab971
Make 'for' implicitly filter out nothings ()
* Make 'for' implicitly filter out nothings

* Fix test
2022-02-18 13:41:41 -05:00
JT
6e733f49bc
Require block params ()
* Require block params

* Improve errors
2022-02-17 06:40:24 -05:00
JT
5b6156687e
Use partial_cmp and make -i case insensitive ()
* Use partial_cmp and make -i case insensitive

* Insensitive sort multiple columns
2022-02-16 11:12:49 -05:00
JT
644435bfe3
Move and enable with-env test () 2022-02-16 04:59:44 -05:00
JT
e763a8dcef
Auto-hide aliases to prevent recursion () 2022-02-15 17:36:24 -05:00
JT
9114a2d31d
Ensure that reduce has a valid span () 2022-02-15 07:59:51 -05:00
JT
84f85ff9ae
Fix to json escape logic () 2022-02-15 06:55:57 -05:00
JT
fbaafaa459
Make param parsing more resilient, correct missing param error () 2022-02-14 12:33:47 -05:00
Andrew Barnes
77eb4c4188
Fix default duplicates column ()
* Add test to ensure default not adding dup. columns

* Fix for default adding duplicate columns
2022-02-13 05:38:46 -05:00
Jakub Žádník
328f7e92a0
Hide alias ()
* Add alias interning

Now, AliasId is used to reference aliases stored in EngineState, similar
to decls, blocks, etc.

* Fix wrong message

* Fix using decl instead of alias

* Extend also alias id visibility

* Merge also aliases from delta

* Add alias hiding code

Does not work yet but passes tests at least.

* Fix wrong alias lookup and visibility appending

* Add hide alias tests

* Fmt & Clippy

* Fix random clippy warnings in "which" command
2022-02-12 11:50:37 +02:00
JT
886ed5ab2d
Fix captures ()
* Fix rowcondition and import captures

* Only check extra blocks if not yet seen
2022-02-11 07:37:10 -05:00
JT
e6db37bc82
Fix multi-command variable captures () 2022-02-10 18:15:15 -05:00
JT
2e3b2a48ee
Fix string interpolation paren cases () 2022-02-10 11:09:08 -05:00
JT
c2118e7505
Fix help flag ()
* Match 'help command' to 'command --help'

* Fix tests
2022-02-09 21:24:29 -05:00
JT
fc88a8538b
Make let-env work like let ()
* Make let-env work like let

* Fix tests
2022-02-09 13:41:41 -05:00
JT
f9e1c4ef50
Use 'table' on scripts and -c commands ()
* Use 'table' on scripts and -c commands

* Fix tests

* Oops, missed a spot
2022-02-09 05:58:54 -05:00
JT
8a373dd554
Add each window () 2022-02-06 20:23:18 -05:00
JT
3eba90232a
Port each group () 2022-02-05 12:34:35 -05:00
JT
f29dbeddd7
Allow let-env to be dynamic () 2022-02-04 16:19:13 -05:00
Jakub Žádník
fefd5fef12
Allow def-env to hide environment variables () 2022-02-04 20:02:03 +02:00
JT
a008f1aa80
Command tests ()
* WIP command tests

* Finish marking todo tests

* update

* update

* Windows cd test ignoring
2022-02-03 21:01:45 -05:00
JT
4c9df9c7c1
Add a fallback if Windows external spawn fails ()
* Add a fallback if Windows external spawn fails

* Remove path workaround

* More fixes

* More fixes

* Be more flexible with error tests
2022-01-31 12:42:12 -05:00
Access
1fd0ddb52c
Maybe solve the none bug? ()
* Maybe solve the none bug?

* cargo fmt

* use nothing, not string

* check at last

* I check it at last

* Use error which has span

* use not found error

* fix error

* use a empty value length?

* * Add commit about what I change and fmt

Now all test passed, but I do not know if it is right

* update the test

* check if it is nothing

* update commit

* Rename test

Co-authored-by: Jakub Žádník <kubouch@gmail.com>
2022-01-30 15:23:28 +02:00
JT
44821d9941
Add support for def-env and export def-env () 2022-01-29 15:45:46 -05:00
Michael Angerman
bffb4950c2
add in a table test with multiple columns () 2022-01-29 09:45:16 -08:00
JT
04395ee05c
Allow equals to sep long flag and arg () 2022-01-27 12:20:12 +11:00
JT
6f4b7efd3e
Also set $in-variable with input ()
* Also set in-variable with input

* Fix test

* Add more tests
2022-01-27 10:46:13 +11:00
JT
78b5da8255
Allow let/let-env to see custom command input () 2022-01-27 06:00:25 +11:00
JT
83ec374995
Add -c flag and others to cmdline args ()
* Add -c flag and others to cmdline args

* finish a little bit of cleanup

* Oops, forgot file
2022-01-26 12:26:43 -05:00
JT
6e44012a2f
Fix bug in date comparison () 2022-01-24 16:55:45 -05:00
JT
525ed7653f
Add var vals and alias expansions to scope var ()
* Add var vals and alias expansions to scope var

* Fix test
2022-01-25 01:19:38 +11:00
JT
af52def93c
Fix doc comments for custom commands () 2022-01-22 13:24:47 -05:00
JT
939745ad67
Support recursive functions in capture () 2022-01-21 11:39:55 -05:00
JT
45b3592739
add some more division for units () 2022-01-21 05:23:26 +11:00
JT
d2d22815fb
Improve env shorthand parse () 2022-01-20 01:58:12 +11:00
JT
f9c0d223c1
Improve keyword parsing, including for ()
* Improve keyword parsing, including for

* touchup
2022-01-16 02:26:52 +11:00
JT
186da4d725
Fixing captures ()
* WIP fixing captures

* small fix

* WIP

* Rewrite to proof-of-concept better parse_def

* Add missing file

* Finish capture refactor

* Fix tests

* Add more tests
2022-01-12 15:06:56 +11:00