krober
3e09158afc
Move capitalize, downcase, upcase to /cases; fix some example descriptions; clarify usage text ( #5572 )
...
Co-authored-by: kyle <kyle@archtop.local>
2022-05-18 00:55:43 -04:00
victormanueltn
a22d70718f
Add search terms to build-string command. ( #5557 )
2022-05-16 12:21:01 -07:00
WindSoilder
d88d057bf6
keep metadata while format filesize ( #5502 )
2022-05-10 11:24:06 -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
Yuheng Su
fbdb125141
Add split number flag in split row
( #5434 )
...
Signed-off-by: Yuheng Su <gipsyh.icu@gmail.com>
2022-05-06 10:53:02 -05:00
JT
76079d5183
Move config to be an env var ( #5230 )
...
* Move config to be an env var
* fix fmt and tests
2022-04-19 10:28:01 +12:00
Kat Marchán
1314a87cb0
update miette and switch to GenericErrors ( #5222 )
2022-04-19 00:34:10 +12:00
Tiffany Bennett
7490392eb9
Add char -i
for chars from integers ( #5183 )
...
* Revert "Allow integer to `char -u` (#5174 )"
This reverts commit cfefb65d55
.
* Add `char -i`
* Reword example
2022-04-14 08:34:02 -05:00
Tiffany Bennett
cfefb65d55
Allow integer to char -u
( #5174 )
2022-04-13 13:33:08 +03:00
Hristo Filaretov
683b912263
Track call arguments in a single list ( #5125 )
...
* Initial implementation of ordered call args
* Run cargo fmt
* Fix some clippy lints
* Add positional len and nth
* Cargo fmt
* Remove more old nth calls
* Good ole rustfmt
* Add named len
Co-authored-by: Hristo Filaretov <h.filaretov@protonmail.com>
2022-04-09 14:55:02 +12:00
Darren Schroeder
74d0f19291
added ability to opt in to normal string replacement in replace
cmd ( #5133 )
...
* added ability to opt in to normal string replacement in `replace` cmd
* type-o
2022-04-08 12:23:16 -05:00
Reilly Wood
d38a3a8b4e
Fix command descriptions+examples ( #5129 )
...
* Fix exit usage
* Move dfr as-date* format examples to extra_usage
* Update command usage and examples
* More docs on `str trim`
Co-authored-by: sholderbach <sholderbach@users.noreply.github.com>
2022-04-08 10:30:49 +02:00
Darren Schroeder
4129f15eb9
update str find-replace
to str replace
( #5120 )
2022-04-07 08:41:09 -05:00
Reilly Wood
d64cf1687e
Fix Format for non-basic data types ( #5095 )
2022-04-05 07:45:38 -05:00
Reilly Wood
657b631fdc
Add search terms to many commands ( #5096 )
2022-04-05 07:01:21 -05:00
JT
66e736dab4
Externals shouldn't expand aliases ( #4889 )
2022-03-22 11:57:48 +13:00
Darren Schroeder
18067138aa
created an alternate way to determine line count ( #4887 )
2022-03-21 11:56:14 -05:00
Darren Schroeder
bd7a506897
update size
command to be more accurate ( #4885 )
2022-03-20 17:09:30 -05:00
Justin Ma
f3626f7c3a
Update docs for open and decode command, regenerate all docs ( #4815 )
...
* Update docs for open and decode command, regenerate all docs
* Update open.rs
* Update open.md
Co-authored-by: JT <547158+jntrnr@users.noreply.github.com>
2022-03-11 05:39:54 -05:00
Darren Schroeder
b73af3b8df
add ability to check if value does not contain something ( #4783 )
2022-03-08 09:10:01 -06:00
JT
299fea8538
Fix external extra ( #4777 )
...
* Fix empty table from externals
* Fix empty table from externals
2022-03-07 20:17:33 -05:00
Darren Schroeder
5b3cc73ac6
remove the hard coded escaping from split row and split column ( #4731 )
2022-03-04 15:09:35 -06:00
JT
7d0531d270
Add support for escape characters, make nuon a JSON superset ( #4706 )
...
* WIP
* Finish adding escape support in strings
* Try to fix windows
2022-03-03 13:14:03 -05:00
Darren Schroeder
796d4920ab
add char separators ( #4667 )
...
* add char separators
* sir clipster
* unclippy
2022-02-27 16:03:21 -06:00
JT
0c3ea636fb
Add support for stderr and exit code ( #4647 )
2022-02-25 14:51:31 -05:00
Justin Ma
aea4355d04
refactor: change column names from 'Column*' to 'column*' ( #4556 )
2022-02-19 19:26:47 -05:00
Justin Ma
ac99ac003a
Add example for cd,transpose,detect columns,split column and split row ( #4549 )
2022-02-19 09:24:48 -06:00
Darren Schroeder
1377693f0f
standardize char nf terms ( #4520 )
2022-02-18 05:52:48 -05:00
JT
f5f9d56c37
Move to a standard kebab/snake style ( #4509 )
2022-02-17 09:55:17 -05:00
JT
a78c82d811
Make PipelineData helpers collect rawstreams ( #969 )
2022-02-07 07:44:18 -05:00
Darren Schroeder
2dd32c2b88
Rename some files ( #952 )
...
* renamed some files
* clippy
* update tests
2022-02-05 12:35:02 -05:00
JT
a008f1aa80
Command tests ( #922 )
...
* WIP command tests
* Finish marking todo tests
* update
* update
* Windows cd test ignoring
2022-02-03 21:01:45 -05:00
JT
a51d45b99d
Ignore clippy's erroneous warnings ( #895 )
2022-01-30 16:12:41 -05:00
JT
060a4b3f48
Port detect columns
( #892 )
2022-01-30 07:52:24 -05:00
JT
86eeb4a5e7
Fix a bad slice into erroring utf-8 buffer ( #872 )
2022-01-28 15:32:46 -05:00
JT
020ad24b25
"maybe text codec" version 2 ( #871 )
...
* Add a RawStream that can be binary or string
* Finish up updating the into's
2022-01-28 13:32:33 -05:00
JT
3d0b1ef1ce
Highlight help tutor ( #838 )
...
* WIP
* Syntax highlight help, add tutor
2022-01-25 02:05:19 +11:00
Darren Schroeder
38e0527083
add more chars ( #701 )
...
* add more chars
* group nerdfonts with nf- prefix
* labeled unicode weather symbols
2022-01-08 07:19:51 -06:00
Jakub Žádník
eab6b322bb
Add CR, LF and CRLF to char command ( #691 )
2022-01-06 20:52:43 +02:00
JT
a811eee6b8
Add support for 'open' ( #573 )
2021-12-25 06:24:55 +11:00
JT
3522bead97
Add string stream and binary stream, add text decoding ( #570 )
...
* WIP
* Add binary/string streams and text decoding
* Make string collection fallible
* Oops, forgot pretty hex
* Oops, forgot pretty hex
* clippy
2021-12-24 18:22:11 +11:00
JT
fc7ed1bfe4
switch substring to bytes ( #538 )
...
* switch substring to bytes
* Add a test
2021-12-21 11:49:02 +11:00
JT
2883d6cd1e
Remove Span::unknown ( #525 )
2021-12-19 18:46:13 +11:00
Darren Schroeder
b3b328d19d
add lp and rp ( #518 )
2021-12-18 12:13:10 -06:00
Matthew Auld
a148ad8697
added a 'list' option to the ansi command ( #504 )
2021-12-16 12:36:07 -06:00
Matthew Auld
89e2169521
Porting 'char' command from nushell to engine-q ( #500 )
...
* Port 'char' command from nushell to engine-q
* fixed unit tests
* Actually fixed unit tests
2021-12-16 10:08:12 +11:00
JT
2013e9300a
Make config default if broken ( #482 )
...
* Make config default if broken
* Make config default if broken
2021-12-13 14:16:51 +11:00
Fernando Herrera
8a06ea133b
removed unwraps ( #430 )
2021-12-04 12:38:21 +00:00
onthebridgetonowhere
bf82417d52
Port str upcase ( #404 )
...
* Port str upcase
* Switch to to_uppercase to support more characters than only ASCII
2021-12-03 15:00:32 +13:00
JT
c5297d2b64
First step ( #411 )
2021-12-03 12:11:25 +13:00
onthebridgetonowhere
687fefd791
Remove Arc from Arguments ( #405 )
2021-12-03 10:07:36 +13:00
JT
45eba8b922
Introduce metadata into the pipeline ( #397 )
2021-12-02 18:59:10 +13:00
onthebridgetonowhere
2bbba3f5da
Port str trim ( #394 )
2021-12-02 17:38:44 +13:00
onthebridgetonowhere
b8f1fea7fe
Port str substring command ( #388 )
...
* Port str substring command
* Fix issue signaled by cargo fmt
2021-12-01 19:42:57 +13:00
Fernando Herrera
b35914bd17
Category option for signature ( #343 )
...
* category option for signature
* category option for signature
* column description for $scope
2021-11-17 17:22:37 +13:00
onthebridgetonowhere
6fbe02eb21
Port str startswith ( #342 )
...
Co-authored-by: Stefan Stanciulescu <contact@stefanstanciulescu.com>
2021-11-16 12:16:56 +13:00
Benoît Cortier
e324c1a078
Port parse command ( #338 )
2021-11-16 07:27:15 +13:00
onthebridgetonowhere
50cbd16ec7
Port str reverse ( #337 )
...
Co-authored-by: Stefan Stanciulescu <contact@stefanstanciulescu.com>
2021-11-15 14:43:40 +13:00
onthebridgetonowhere
f1b2ab0b27
Port str lpad and str rpad ( #334 )
...
* Port str lpad and str rpad
* Remove useless comment
Co-authored-by: Stefan Stanciulescu <contact@stefanstanciulescu.com>
2021-11-15 08:36:24 +13:00
JT
0f107b2830
Add a config variable with engine support ( #332 )
...
* Add a config variable with engine support
* Add a config variable with engine support
* Oops, cleanup
2021-11-15 08:25:57 +13:00
onthebridgetonowhere
08d316f6a7
Port str length command ( #330 )
...
Co-authored-by: Stefan Stanciulescu <contact@stefanstanciulescu.com>
2021-11-14 10:25:55 +13:00
onthebridgetonowhere
e756a9ea04
Port str indexof ( #327 )
...
* Port str indexof
* Fix clippy warning
Co-authored-by: Stefan Stanciulescu <contact@stefanstanciulescu.com>
2021-11-12 08:45:39 +13:00
onthebridgetonowhere
586c6d9fa8
Port str find replace ( #325 )
...
* Port str find_replace command
* Add regex crate as dependency
Co-authored-by: Stefan Stanciulescu <contact@stefanstanciulescu.com>
2021-11-11 12:11:34 +13:00
onthebridgetonowhere
d094f654c3
Port str endswith ( #321 )
...
* Port str endswith command
* Fix clippy warnings
* Styling
Co-authored-by: Stefan Stanciulescu <contact@stefanstanciulescu.com>
2021-11-10 13:51:55 +13:00
onthebridgetonowhere
0f516a0830
Port str downcase and str contains ( #319 )
...
* Port str contains command
* Add another test case / example for str contains
* Port str downcase to engine-q
Co-authored-by: Stefan Stanciulescu <contact@stefanstanciulescu.com>
2021-11-10 09:16:53 +13:00
onthebridgetonowhere
ef20b5f1ef
Port str capitalize ( #317 )
...
* Port str capitalize command
* Keep consistent naming for str commands
Co-authored-by: Stefan Stanciulescu <contact@stefanstanciulescu.com>
2021-11-09 20:40:56 +13:00
JT
34617fabd9
Do some str collect cleanup ( #312 )
2021-11-09 17:46:26 +13:00
JT
47628946b6
Add str collect
( #311 )
...
* Add str collect
* Oops, missing file
2021-11-09 14:59:44 +13:00
onthebridgetonowhere
a1f141d18a
Port str case commands ( #287 )
...
* Port camel case and kebab case
* Port pascal case
* Port snake case and screaming snake case
* Cleanup before PR
* Add back cell path support for str case commands
* Add cell path tests for str case command
* Revert "Add cell path tests for str case command"
This reverts commit a0906318d95fd2b5e4f8ca42f547a7e4c5db381a.
* Add cell path test cases for str case command
* Move cell path tests from tests.rs to Examples in each of the command's file
Co-authored-by: Stefan Stanciulescu <contact@stefanstanciulescu.com>
2021-11-07 06:55:25 +13:00
JT
02b8027749
Improve external output in subexprs ( #294 )
2021-11-06 18:50:33 +13:00
Antonio Natilla
bfae75ca2e
Clean-up and adding comments
2021-11-03 20:05:24 +01:00
Antonio Natilla
806cd4851f
Format implementation, fix on Echo
...
Now, Echo converts multiple values in a ValueStream, but it simply
forwards a single Value; if no PipelineData is detected as an input, an
empty string is returned as a single Value.
2021-11-03 19:57:30 +01:00
Antonio Natilla
52cb50b937
Base Command implementation for Format
...
Note that run is not implemented yet
2021-11-02 18:13:06 +01:00
JT
bac8b8a450
Add initial ctrl-c support
2021-10-28 17:13:10 +13:00
JT
766726d0fa
Use different helper functions for split column
2021-10-26 12:35:51 +13:00
JT
85a69c0a45
WIP
2021-10-26 10:14:21 +13:00
JT
5d19017603
WIP
2021-10-26 05:58:58 +13:00
JT
b5965ee8ef
WIP
2021-10-25 19:31:39 +13:00
JT
b6d269e90a
WIP
2021-10-25 17:01:02 +13:00
JT
b322a12f58
Add more helper functions
2021-10-20 18:58:25 +13:00
JT
5c46138563
Some touchups to size
2021-10-13 17:15:37 +13: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
JT
38bc394a12
Expose errors early when possible
2021-10-12 07:45:31 +13:00
JT
c3a032950d
Add initial batch of into conversions
2021-10-11 14:56:19 +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
4ddc953e38
Port help and start porting split
2021-10-09 14:02:01 +13:00
JT
8250b44ce5
moved commands
2021-09-30 07:25:05 +13:00