1
0
mirror of https://github.com/nushell/nushell.git synced 2024-12-26 17:09:06 +01:00
Commit Graph

1104 Commits

Author SHA1 Message Date
JT
9fb12fefb0
Improve history hinting () 2021-12-22 20:12:24 +11:00
Jakub Žádník
8ba3e3570c
Interpret lists as series of args for externals ()
* Interpret lists as series of args for externals

* Fix clippy warnings
2021-12-22 10:13:05 +02:00
Fernando Herrera
ea6912c3f7
missing commands () 2021-12-22 10:35:02 +11:00
Jakub Žádník
deeb1da359
Allow having only one env conversion ()
Allows setting only `from_string` or `to_string` in `env_conversions`
config. Previously, both were required.
2021-12-22 00:32:38 +02:00
Jakub Žádník
52dba91e1a
Wrap captured env var names into quotes as well () 2021-12-21 23:31:30 +02:00
JT
266fac910a
Signature improves, sorted completions () 2021-12-22 07:50:18 +11:00
Fernando Herrera
3ad5d4af66
sort env vars () 2021-12-22 07:27:19 +11:00
Ștefan
a93a9b9029
Add skip-empty flag to lines command ()
* Add skip-empty flag to lines command

* Fix failing length test
2021-12-22 07:24:11 +11:00
Fernando Herrera
6a35e6b7b6
Dataframe commands ()
* groupby object

* aggregate command

* eager commands

* rest of dataframe commands
2021-12-22 05:32:09 +11:00
JT
c3a16902fe
Fix list printing () 2021-12-21 20:05:16 +11:00
JT
fc7ed1bfe4
switch substring to bytes ()
* switch substring to bytes

* Add a test
2021-12-21 11:49:02 +11:00
Jakub Žádník
1609101e62
Fix capturing environment variables with " or ' ()
* Fix path expand error span

* Fix capturing env vars containing ' or "; Rustfmt
2021-12-20 23:19:43 +02:00
JT
0571a6ee34
Merged heterogeneous tables ()
* Merged heterogeneous tables

* switch emoji
2021-12-21 08:03:47 +11:00
JT
152467a858
Flatten should flatten embedded table () 2021-12-21 06:03:18 +11:00
JT
caf73c36f2
Finish adding support for optional params () 2021-12-20 17:58:09 +11:00
Fernando Herrera
e949658381
nothing variable ()
* nothing variable

* corrected comments

* added color to nothing like bool

* compare nothing with values

* comparison tests
2021-12-20 12:05:33 +11:00
Jae-Heon Ji
ff5b7e5ad2
feat(into): add into-bool command ()
* feat(into): add example of into-bool

* feat(into): add convert from int and float

* feat(into): add converting string to bool

* feat(into): add converting value in table

* fix(into): update error

* fix(into): update span for example

* chore(into): update signature description

* float comparison using epsilon

* Update bool.rs

Co-authored-by: JT <547158+jntrnr@users.noreply.github.com>
2021-12-20 07:11:28 +11:00
JT
cf5048205f
Allow empty span slice for now () 2021-12-20 06:25:02 +11:00
Ștefan
c37bdcd119
port empty command ()
* port empty command

* Pull upstream and use test_data() function for example tests
2021-12-20 06:11:57 +11:00
Fernando Herrera
038ad951da
name change () 2021-12-19 10:00:31 +00:00
JT
2883d6cd1e
Remove Span::unknown () 2021-12-19 18:46:13 +11:00
JT
b54e9b6bfd
Fix completion crash () 2021-12-19 07:10:40 +11:00
Fernando Herrera
ebf57c70e0
Plugin signature ()
* calling plugin without shell

* spelling error

* option on register to select a shell

* help in plugin example signature
2021-12-18 19:25:17 +00:00
Michael Angerman
00bb203756
add in a new command called columns () 2021-12-18 12:14:28 -06:00
Fernando Herrera
8933dde324
Plugin option for shell ()
* calling plugin without shell

* spelling error

* option on register to select a shell
2021-12-18 12:13:56 -06:00
Darren Schroeder
b3b328d19d
add lp and rp () 2021-12-18 12:13:10 -06:00
Fernando Herrera
46b86f3541
Migration of series commands ()
* corrected missing shellerror type

* batch dataframe commands

* removed option to find declaration with input

* ordered dataframe folders

* dataframe command name
* series commands

* date commands

* series commands

* series commands

* clippy correction

* rename commands
2021-12-18 17:45:09 +00:00
Fernando Herrera
d8847f1082
Calling plugin without shell ()
* calling plugin without shell

* spelling error
2021-12-18 09:52:27 -06:00
Jakub Žádník
ada9c742c6
Fix broken env var reading on startup () 2021-12-17 23:09:44 +02:00
Ștefan
6f6340186a
Port flatten ()
* A first working version of flatten. Needs a lot of cleanup. Committing to have a working version

* Typo fix

* Flatten tests pass

* Final cleanup, ready for push

* Final cleanup, ready for push

* Final cleanup, ready for push

* Final cleanup, ready for push

* Update flatten.rs

Co-authored-by: JT <547158+jntrnr@users.noreply.github.com>
2021-12-18 07:44:51 +11:00
Matthew Auld
6ba1e6172c
Port 'ansi strip' command from nushell to engine-q ()
* Port 'ansi strip' command from nushell to engine-q

* added example
2021-12-18 07:32:03 +11:00
Matthew Auld
438c2df8b6
Porting 'ansi gradient' command from nushell to engine-q ()
* Porting  'ansi gradient' command from nushell to engine-q

* passed correct span variable
2021-12-18 04:40:47 +11:00
Jakub Žádník
6a0f404558
Treating environment variables as Values ()
* Proof of concept treating env vars as Values

* Refactor env var collection and method name

* Remove unnecessary pub

* Move env translations into a new file

* Fix LS_COLORS to support any Value

* Fix spans during env var translation

* Add span to env var in cd

* Improve error diagnostics

* Fix non-string env vars failing string conversion

* Make PROMPT_COMMAND a Block instead of String

* Record host env vars to a fake file

This will give spans to env vars that would otherwise be without one.
Makes errors less confusing.

* Add 'env' command to list env vars

It will list also their values translated to strings

* Sort env command by name; Add env var type

* Remove obsolete test
2021-12-17 12:04:54 +11:00
Arthur Targaryen
342584e5f8
Port keep, keep while and keep until commands ()
* Add `KeepUntil` sub-command

* Add `KeepWhile` sub-command

* Add `Keep` command

* Fix error type
2021-12-17 11:57:02 +11:00
Stefan Holderbach
efb4a9f95c
Fix Ctrl-D exit in cli ()
Clears to a new line for the potentially hosting process
Remove the output for `Ctrl-C`
2021-12-16 15:40:12 -06:00
Stefan Holderbach
bf6780967b
Make dialoguer completion abortable ()
Fixes 
2021-12-16 15:11:06 -06:00
Matthew Auld
a148ad8697
added a 'list' option to the ansi command () 2021-12-16 12:36:07 -06:00
Darren Schroeder
9a864b5017
allow flatshape (command line syntax) theming ()
* allow flatshape (command line syntax) theming

* renamed crate, organized
2021-12-16 06:17:29 -06:00
JT
17a7a85c78
Bump some deps () 2021-12-16 20:40:05 +11:00
Matthew Auld
89e2169521
Porting 'char' command from nushell to engine-q ()
* Port 'char' command from nushell to engine-q

* fixed unit tests

* Actually fixed unit tests
2021-12-16 10:08:12 +11:00
Matthew Auld
e289630920
Porting 'ansi' command from nushell to engine-q ()
* Porting 'ansi' command from nushell to engine-q

* Added StrCollect to example_test.rs to allow example tests to run

* Run 'cargo fmt' to fix formatting

* Update command.rs

* Update command.rs

* Update command.rs

* Added a category

Co-authored-by: JT <547158+jntrnr@users.noreply.github.com>
2021-12-16 10:06:35 +11:00
JT
1d74d9c5ae
Fix comment issue and shadowing issue () 2021-12-16 09:56:12 +11:00
Jakub Žádník
aea2adc44a
Update Beaking_Changes.md 2021-12-15 23:39:22 +02:00
Michael Angerman
0450cc25e0
port over from nushell drop nth () 2021-12-15 06:26:15 -06:00
JT
e9525627e6
Fix a couple crlf issues () 2021-12-15 07:17:02 +11:00
Michael Angerman
1cbb785969
port over from nushell drop column ()
* port over from nushell drop column

* fix clippy
2021-12-15 06:54:27 +11:00
Benoît Cortier
a41ae72bc1
Fix error propagration across hash commands () 2021-12-15 06:49:48 +11:00
Darren Schroeder
a5c1dd0da5
allow fg, bg, attributes to be set for all colors in color_config ()
* allow fg, bg, attributes to be set for all colors in color_config

* no need for comma between each key value
2021-12-14 13:34:39 -06:00
JT
04a9c8f3fd
Fix bug in chained boolean typecheck () 2021-12-14 16:19:16 +11:00
JT
673fe2b56a
Bump to use latest git reedline () 2021-12-14 06:54:43 +11:00