Jakub Žádník
f3036b8cfd
Allow keeping selected environment variables from removed overlay ( #6007 )
...
* Allow keeping selected env from removed overlay
* Remove some duplicate code
* Change --keep-all back to --keep-custom
Because, apparently, you cannot have a named flag called --keep-all,
otherwise tests fail?
* Fix missing line and wrong test value
2022-07-11 23:58:28 +03:00
WindSoilder
9e3c64aa84
Add bytes collect, bytes remove, bytes build cmd ( #6008 )
...
* add bytes collect
* index_of support searching from end
* add bytes remove
* make bytes replace work better for empty pattern
* add bytes build
* remove comment
* tweak words
Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
2022-07-11 06:26:00 -05:00
Justin Ma
4e90b478b7
Add bit operator: bit-xor
( #5940 )
2022-07-03 06:45:20 -05:00
JT
a48616697a
Rename bitwise operators for readability ( #5937 )
2022-07-02 17:05:02 -05:00
Justin Ma
b82dccf0bd
Add band
and bor
operator for bit operations ( #5936 )
...
* Add `band` and `bor` Operator
* Add tests
2022-07-02 13:03:36 -05:00
Justin Ma
3917fda7ed
Update #4202 : Add shift operator bshl and bshr for integers ( #5928 )
...
* Update #4202 : Add shift operator bshl and bshr for integers
* Add more tests
2022-07-02 06:48:43 -05:00
Benoît Cortier
173d60d59d
Deprecate hash base64
, extend decode
and add encode
commands ( #5863 )
...
* feat: deprecate `hash base64` command
* feat: extend `decode` and `encode` command families
This commit
- Adds `encode` command family
- Backports `hash base64` features to `encode base64` and `decode base64` subcommands.
- Refactors code a bit and extends tests for encodings
- `decode base64` returns a binary `Value` (that may be decoded into a string using `decode` command)
* feat: add `--binary(-b)` flag to `decode base64`
Default output type is now string, but binary can be requested using this new flag.
2022-06-26 00:35:23 +03:00
Fernando Herrera
de554f8e5f
filesize conversion ( #5770 )
2022-06-13 14:44:32 -05:00
pwygab
caafd26deb
Attempts to add //
math operator ( #5759 )
...
* attempts to add `div` math operator
* allows `//` to be used too
* fmt:
* clippy issue
* returns appropriate type
* returns appropriate type 2
* fmt
* ensure consistency; rename to `fdiv`
* Update parser.rs
2022-06-13 13:54:47 +03:00
Fernando Herrera
d5b99ae316
input and output types ( #5750 )
...
* input and output types
* added description
* type from stored variable
* string in custom value
* more tests with non custom
2022-06-10 10:59:35 -05:00
Darren Schroeder
c57f41e5f2
make to text
work more intuitively ( #5733 )
2022-06-07 14:43:24 -05:00
Stefan Holderbach
e5d38dcff6
Address lints from clippy for beta/nightly ( #5709 )
...
* Fix clippy lints in tests
* Replace `format!` in `.push_str()` with `write!`
Stylistically that might be a bit rough but elides an allocation.
Fallibility of allocation is more explicit, but ignored with `let _ =`
like in the clippy example:
https://rust-lang.github.io/rust-clippy/master/index.html#format_push_string
* Remove unused lifetime
* Fix macro crate relative import
* Derive `Eq` for `PartialEq` with `Eq` members
https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
* Remove unnnecessary `.to_string()` for Cow<str>
* Remove `.to_string()` for `tendril::Tendril`
Implements `Deref<Target = str>`
2022-06-04 18:47:36 +12:00
Justin Ma
d44059c36b
feat: Add sensitive flag to get, fix #4295 ( #5685 )
...
* feat: Add insensitive flag to get, fix #4295
* add get insensitive example
* Fix get flags
* Update get examples
2022-06-01 08:34:42 -05:00
WindSoilder
fc41a0f96b
use reverse iter on value search ( #5553 )
2022-05-16 06:29:40 -05:00
Fernando Herrera
8bd68416e3
Lazy dataframes ( #5546 )
...
* lazyframe definition
* expressions and lazy frames
* new alias expression
* more expression commands
* updated to polars main
* more expressions and groupby
* more expressions, fetch and sort-by
* csv reader
* removed open csv
* unique function
* joining functions
* join lazy frames commands with eager commands
* corrected tests
* Update .gitignore
* Update .gitignore
Co-authored-by: JT <547158+jntrnr@users.noreply.github.com>
2022-05-16 08:27:43 +01:00
WindSoilder
16bd7b6d0d
Fix Value::Record compare logic, and pass uniq tests. ( #5541 )
...
* fix record compare logic
* add more comment
2022-05-14 06:04:09 -05:00
WindSoilder
8030f7e9f0
add format filesize ( #5498 )
...
* add format filesize
* add comment
* add comment
* remove comment
2022-05-10 06:35:14 -05:00
panicbit
49cbc30974
Add ends-with operator and fix dataframe operator behavior ( #5395 )
...
* add ends-with operator
* escape needles in dataframe operator regex patterns
2022-05-02 20:02:38 +12:00
Andrés N. Robalino
7a7aa310aa
Remove 'empty' block support reminders, for now. ( #5214 )
2022-04-30 22:32:30 -05:00
Reilly Wood
b501db673a
SQLite overhaul: custom value, query db
command ( #5247 )
...
Clean up query errors
2022-04-20 16:58:21 +12:00
Kat Marchán
1314a87cb0
update miette and switch to GenericErrors ( #5222 )
2022-04-19 00:34:10 +12:00
JT
14066ccc30
Fix known externals, fix operator spans ( #5140 )
2022-04-09 17:17:48 +12:00
Michael Angerman
aaec840b91
doc change from engine-q to nushell ( #5134 )
2022-04-08 10:29:21 -07:00
Reilly Wood
b2c52b51b7
Change string contains operators to regex ( #5117 )
2022-04-07 18:23:14 +12:00
JT
4409185e1b
Improve describe to be more accurate ( #5116 )
2022-04-07 16:34:09 +12:00
Darren Schroeder
2cb815b7b4
Add starts with operator ( #5061 )
...
* add starts_with operator
* added a test
2022-04-01 13:35:46 -05:00
JT
2e3b74f1b2
Fix for loop ctrlc not terminating ( #5003 )
2022-03-28 19:13:43 +13:00
Jonathan Moore
ea7c8c237e
CantConvert improvements ( #4926 )
...
* CantConvert improvements
* cargo fmt
2022-03-24 07:04:31 -05:00
JT
0986eefb64
Add insert and update back ( #4864 )
2022-03-18 06:55:02 +13:00
JT
088d19ad47
Make date values more readable ( #4790 )
2022-03-09 05:43:04 -05:00
JT
1837bf775c
Default values ( #4770 )
2022-03-07 15:08:56 -05:00
JT
cb5c61d217
Fix open ended ranges ( #4677 )
...
* Make open ended ranges more open ended
* Add test
2022-02-28 11:15:31 -05:00
Fernando Herrera
11bc056576
Find with regex flag ( #4649 )
...
* split find functions
* find command with regex
* corrected message
* cargo fmt
2022-02-26 04:19:19 -05:00
JT
3c62d27c28
Try again with math-like externals ( #4629 )
...
* 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 ( #4621 )
2022-02-24 06:57:31 -05:00
Fernando Herrera
21c0f7d738
allow int and float as strings for arguments ( #4615 )
...
* allow int and float as strings for arguments
* consume iterator
2022-02-24 05:09:02 +00:00
JT
4b18fdcc6e
Date literals ( #4619 )
...
* Date literals
* update deps
* Add date+duration
2022-02-23 21:02:48 -05:00
JT
2ba12afb01
A few fixes to docs generation and default config ( #4570 )
...
* A few fixes to docs generation and default config
* A few more fixes
2022-02-20 15:20:41 -05:00
JT
d53eaac7a1
Improve comparison errors ( #4541 )
2022-02-18 17:11:27 -05:00
JT
06f9047be4
Add an explicit 'print' command ( #4535 )
2022-02-18 13:43:34 -05:00
JT
786e4ab971
Make 'for' implicitly filter out nothings ( #4536 )
...
* Make 'for' implicitly filter out nothings
* Fix test
2022-02-18 13:41:41 -05:00
JT
d620f76a21
Make comparisons/sort-by more 'global' ( #4500 )
...
* 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 ( #4496 )
...
* Add a batch of command tests
* More tests
2022-02-16 07:38:02 -05:00
JT
5a1d81221f
Move 'nth' into 'select' ( #4385 )
2022-02-09 09:59:40 -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 ( #969 )
2022-02-07 07:44:18 -05:00
JT
cc1b784e3d
Add initial nu-test-support port ( #913 )
...
* Add initial nu-test-support port
* finish changing binary name
* Oops, these aren't Windows-safe tests
2022-02-02 15:59:01 -05:00
Access
1fd0ddb52c
Maybe solve the none bug? ( #860 )
...
* 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
e91d8655c6
Only trim prompt ( #876 )
...
* Only trim the output for prompts
* Only remove the last newline
2022-01-28 18:22:09 -05:00