2
0
Fork 0
mirror of https://github.com/nushell/nushell synced 2025-02-15 13:38:41 +00:00
Commit graph

722 commits

Author SHA1 Message Date
Jakub Žádník
72daf8c64e
Fix reporting of which and $nu.scope ()
* Refactor & fix which

Instead of fetching all definitions / aliases, only show the one that is
visible.

* Fix $nu.scope to show only visible definitions

* Add missing tests file; Rename one which test
2022-03-13 21:32:46 +02:00
Jakub Žádník
c73d8d5f95
Add LIB_DIRS and PLUGIN_DIRS ()
* Add LIB_DIRS and PLUGIN_DIRS

* Put plugin dirs behind plugin feature
2022-03-12 22:12:15 +02:00
Jakub Žádník
90b2ec537f
Do not pass non-string env vars to externals ()
* Do not pass non-string env vars to externals

Also misc cleanup

* Add note to default config

* Add a test

* Ensure PATH/Path conversion list <-> string
2022-03-12 00:18:39 +02:00
JT
2b3843c7c0
ensure exit codes in more cases () 2022-03-10 07:32:46 -05:00
JT
12bf23faa6
Move completions to DeclId ()
* Move completions to DeclId

* fmt

* fmt
2022-03-10 09:49:02 +02:00
JT
088d19ad47
Make date values more readable () 2022-03-09 05:43:04 -05:00
JT
2ac990655e
Add support for var decl spans () 2022-03-09 04:42:19 -05:00
JT
299fea8538
Fix external extra ()
* Fix empty table from externals

* Fix empty table from externals
2022-03-07 20:17:33 -05:00
JT
1837bf775c
Default values () 2022-03-07 15:08:56 -05:00
JT
e64ca97fe2
move scope variable into nu variable () 2022-03-04 11:36:11 -05:00
Genna Wingert
47d5501f9f
Add aliases to command completions () 2022-03-03 15:07:13 -05:00
Fernando Herrera
2fd42d25b1
partial completions () 2022-03-03 11:13:44 +02:00
JT
4965f4cbf4
Bump to 0.59.1 () 2022-03-01 16:55:51 -05:00
JT
a6a96b29cb
Add binary literals () 2022-02-28 18:31:53 -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
Justin Ma
b09acdb7f9
Fix unsupported type message for some math related commands ()
* Fix unsupported type message of some math related commands

* changing the error form for UnsupportedInput

* cargo fmt
2022-02-28 10:14:33 -05:00
Jonathan Moore
ef70c8dbe4
Date parse refactor ()
* More flexible and DRY datetime parsing

* Update error messages

* cargo fmt

* clippy

* Add DatetimeParseError
2022-02-27 20:21:46 -05:00
Fernando Herrera
11bc056576
Find with regex flag ()
* split find functions

* find command with regex

* corrected message

* cargo fmt
2022-02-26 04:19:19 -05:00
JT
0c3ea636fb
Add support for stderr and exit code () 2022-02-25 14:51:31 -05:00
JT
3c62d27c28
Try again with math-like externals ()
* Try again with math-like externals

* clippy 1.59

* clippy 1.59

* clippy 1.59
2022-02-24 14:02:28 -05:00
Michael Angerman
feb4f5c347
replace ValueStream with ListStream () 2022-02-24 06:57:31 -05:00
Fernando Herrera
21c0f7d738
allow int and float as strings for arguments ()
* allow int and float as strings for arguments

* consume iterator
2022-02-24 05:09:02 +00:00
JT
4b18fdcc6e
Date literals ()
* Date literals

* update deps

* Add date+duration
2022-02-23 21:02:48 -05:00
JT
25712760ba
Add support for math-like externals () 2022-02-22 10:55:28 -05:00
JT
9888f8f298
Add pipeline redirection support ()
* redirection

* Remove commented-out

* fix tests

* more fixes
2022-02-21 17:22:21 -05:00
Jakub Žádník
739e403cd5
Do not set visibility to true automatically ()
Adding it by default grows the size of the visibility structure a lot.
2022-02-21 16:42:31 -05:00
Jakub Žádník
359bb6eebe
Look up predecl only in the working set ()
Previously, the parser tried to look up the predecl also in the
permanent state and if a definition with that name already existed, it
would try to update it, which is illegal.
2022-02-21 16:05:20 -05:00
JT
a96f8b891e
more strict nuon handling, better nuon errors ()
* more strict nuon handling, better nuon errors

* Improve errors a bit more
2022-02-20 22:31:50 -05:00
JT
fd22211737
Add nuon format for fun ()
* Add nuon format for fun

* more fun

* More nuon fixes, allow comments, improve errors
2022-02-20 16:26:41 -05:00
JT
2ba12afb01
A few fixes to docs generation and default config ()
* A few fixes to docs generation and default config

* A few more fixes
2022-02-20 15:20:41 -05:00
Jakub Žádník
56aacc4852
Use environment variable for env_conversions ()
* Handle string->value env conv. with env. var.

Also adds the environment variable for Path/PATH and removes it from
config.

* Simplify getting the string->value conversion

* Refactor env conversion into its own function

* Use env var for to_string conversion; Remove conf

* Fix indentation in default config
2022-02-20 16:27:59 +02:00
JT
d53eaac7a1
Improve comparison errors () 2022-02-18 17:11:27 -05:00
JT
06f9047be4
Add an explicit 'print' command () 2022-02-18 13:43:34 -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
Jakub Žádník
bccce0ab46
Use overlay ID for module import lookup ()
* Add id to import pattern

* Finish testing importing in a block
2022-02-17 20:58:24 -05:00
JT
f5f9d56c37
Move to a standard kebab/snake style () 2022-02-17 09:55:17 -05:00
JT
d620f76a21
Make comparisons/sort-by more 'global' ()
* Make comparisons/sort-by more 'global'

* Let custom values do their own comparisons
2022-02-16 13:30:37 -06:00
JT
c4e1559f89
Another batch of command tests ()
* Add a batch of command tests

* More tests
2022-02-16 07:38:02 -05:00
JT
56b3fc61a3
Remove statements, replaced by pipelines () 2022-02-15 14:31:14 -05:00
JT
a743db8e8f
Improve alias expansion, again () 2022-02-14 21:09:21 -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
a16e485cce
Add support for defining known externals with their own custom completions ()
* WIP for known externals

* Now completions can work from scripts

* Add support for definiing externs

* finish cleaning up old proof-of-concept
2022-02-11 13:38:10 -05: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
Darren Schroeder
ba4d8ae8c3
tweak wording () 2022-02-10 17:27:51 -06:00
Fernando Herrera
5cf91cb30d
deprecated commands ()
* deprecated commands

* deprecated insert command
2022-02-10 12:55:19 +00:00
JT
5a1d81221f
Move 'nth' into 'select' () 2022-02-09 09:59:40 -05:00
JT
43850bf20e
Re-port filesystem commands ()
* Re-port the filesystem commands

* Remove commented out section
2022-02-09 09:56:27 -05:00
JT
d70d91e559 Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
Fernando Herrera
fdce6c49ab engine-q merge 2022-02-07 19:11:34 +00:00
JT
a78c82d811
Make PipelineData helpers collect rawstreams () 2022-02-07 07:44:18 -05:00