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
Yethal
409f1480f5
allow par-each to receive $in ( #5229 )
...
Co-authored-by: Yethal <nosuchemail@email.com>
2022-04-19 10:02:58 +12:00
merelymyself
88ec4186ec
Added search terms to math commands ( #5224 )
2022-04-19 09:33:32 +12:00
Kat Marchán
1314a87cb0
update miette and switch to GenericErrors ( #5222 )
2022-04-19 00:34:10 +12:00
Thomas B Homburg
c9f05f074a
nth
-> select
command (#5217 )
2022-04-17 09:54:24 -05:00
nicole mazzuca
6e85b04923
[ls, path relative-to] Fix use of ls ~ | path relative-to ~
( #5212 )
...
* [ls] implement 1b.
> `ls ~` does not return paths relative to the current directory.
We now return `/Users/blah` instead of `../../blah`
* expand lhs and rhs on `path relative-to`
/Users/nimazzuc/projects/nushell〉'~' | path relative-to '~'
/Users/nimazzuc/projects/nushell〉'~/foo' | path relative-to '~'
foo
/Users/nimazzuc/projects/nushell〉'/Users/nimazzuc/foo' | path relative-to '~'
foo
/Users/nimazzuc/projects/nushell〉'~/foo' | path relative-to '/Users/nimazzuc'
foo
* format
2022-04-16 15:05:42 -05:00
Darren Schroeder
4d31139a44
add hex color parsing to ansi ( #5209 )
2022-04-16 10:44:04 -05:00
Michael Angerman
1bad40726d
cleanup nu-command, remove redundant code ( #5208 )
2022-04-16 18:16:46 +12:00
JT
5bf1c98a39
Move to dev version 0.61.1 ( #5206 )
2022-04-16 09:29:30 +12:00
ZetaNumbers
583b7b1821
fix: reduce command have not redirected block's evaluation output ( #5193 )
...
fixes https://github.com/nushell/nushell/issues/5190
2022-04-15 07:03:16 -05:00
Dan Swain
8e2847431e
Avoid duplicating post headers ( #5200 )
...
* Avoid duplicating post headers
This should fix #5194
* Update post.rs
Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
2022-04-15 06:02:22 -05:00
nibon7
2fe14a7a5a
fix timestamp parsing on 32-bit platforms ( #5192 )
...
Fixes #5191
2022-04-14 08:52:32 -05: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
Michael Angerman
1d1dbfd04c
update crate chrono-tz to its latest version ( #5184 )
2022-04-13 21:16:08 -07:00
Reilly Wood
c150e11cb4
Initial SQLite functionality ( #5182 )
...
* Add SQLite functionality to open
* Add in-memory SQLite tests
* clippy fixes
* Fix up old SQLite-related tests
2022-04-13 20:15:02 -07:00
nicole mazzuca
87c684c7da
don't join paths to cwd ever in calls to external functions ( #5180 )
...
This is a follow-up to #5131 , since I don't personally like the way it worked.
2022-04-13 21:42:57 +03:00
Darren Schroeder
10792a29f7
allow default color shortcut names ( #5177 )
...
* allow default color shortcut names
* clippy
2022-04-13 07:02:15 -05:00
Tiffany Bennett
cfefb65d55
Allow integer to char -u
( #5174 )
2022-04-13 13:33:08 +03:00
JT
4566c904d0
Bump 0.61 ( #5166 )
2022-04-13 05:42:26 +12:00
Stefan Holderbach
9b020c056b
Pin reedline version for 0.61 release ( #5164 )
2022-04-13 04:38:36 +12:00
Reilly Wood
57761149f4
Update incorrect crate descriptions ( #5159 )
2022-04-12 06:17:06 +12:00
nicole mazzuca
521e28dcdc
fix #5131 ( #5153 )
...
I don't personally agree with this; I'd prefer less magic,
and not expanding _anything_ except `~` as an initial path element
Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
2022-04-11 20:05:39 +12:00
JT
4fd73ef54a
Allows aliases in use lists ( #5150 )
2022-04-11 07:37:22 +12:00
Darren Schroeder
791e8a0e59
enable ls
to output datetime in local time vs utc ( #5141 )
...
* enable `ls` to output datetime in local time vs utc
* clippy
2022-04-09 11:39:41 -05:00
JT
14066ccc30
Fix known externals, fix operator spans ( #5140 )
2022-04-09 17:17:48 +12: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
JT
97eb8492a3
Improve $in
handling ( #5137 )
...
* Simplify in logic
* Add tests
* more tests, and fixes
2022-04-09 09:41:05 +12:00
JT
0892a16a3d
Let 'each' also send input to block ( #5136 )
2022-04-09 07:57:43 +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
Michel Alexandre Salim
6ed033737d
Include license text in all crates ( #5094 )
...
* Include license text in all crates
Three crates already have license texts, so I'm keeping them, but
symlinking the `LICENSE` from the top level to the rest of the crate
directories. This works as long as `cargo publish` is done on a Unix-y
system and not Windows.
Also bump the copyright year to end in 2022.
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
* Replace symlinks
Co-authored-by: sholderbach <sholderbach@users.noreply.github.com>
2022-04-08 10:47:13 +02: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
bdfad6b1de
add keep deprecated commands ( #5124 )
2022-04-08 10:10:46 +12:00
JT
4f974efeba
Move 'keep' to 'take' ( #5123 )
2022-04-08 08:49:28 +12:00
Darren Schroeder
4129f15eb9
update str find-replace
to str replace
( #5120 )
2022-04-07 08:41:09 -05:00
Robert Broketa
690ec9abfa
Implement rest of touch
flags ( #5119 )
...
* Add timestamp flag to `touch` command
* Add modify flag to `touch` command
* Add date flag to `touch` command
* Remove unnecessary `touch` test and fix tests setups
* Change `touch` flags descriptions
* Update `touch` example
* Add reference flag to `touch` command
* Add access flag to `touch` command
* Add no-create flag to `touch` command
* Replace `unwrap` with `expect`
2022-04-07 06:44:05 -05:00
Reilly Wood
b2c52b51b7
Change string contains operators to regex ( #5117 )
2022-04-07 18:23:14 +12:00
JT
591fb4bd36
Add unary not ( #5111 )
2022-04-07 07:10:25 +12:00
Reilly Wood
d0e636ae7a
Trim newline from input
results ( #5097 )
2022-04-05 12:52:09 -05:00
Darren Schroeder
6e7e2dbb97
enables find to search records with regex ( #5100 )
...
* enables find to search records with regex
* clippy
2022-04-05 12:26:11 -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
Darren Schroeder
e2cf4cc7d6
new glob
command ( #5087 )
2022-04-05 08:45:01 +12:00
Elijah Koreman
1e4b33b9c6
Add quiet and feedback to mv command ( #5073 )
...
* Add quiet and feedback to mv command
* replaced filter and map with filter_map
2022-04-05 06:30:51 +12:00
Darren Schroeder
4654f03d31
update shadow-rs, update git2, remove indexmap from version
( #5086 )
2022-04-04 09:59:59 -05:00
Reilly Wood
d40109f210
Tweak append+prepend help ( #5080 )
2022-04-03 17:50:22 -05:00
Reilly Wood
20be8a4987
Fix for search terms in help --find
( #5081 )
...
* Fix search terms in help --find
* Update help --find description
2022-04-03 17:37:22 -05:00
Simon Goller
19c3570cf9
Allow open to work with 'from ...' block commands ( #5049 )
...
* Remove panic from BlockCommands run function
Instead of panicing, the run method now returns an error to prevent
nushell from unexpected termination.
* Add ability to open command to run with blocks
The open command tries to parse the content of the file
if there is a command called 'from (file ending)'. This works
fine if the command was 'built in' because the run method doesn't
fail in this case. It did fail on a BlockCommand, though.
This change will first probe if the command contains a block and
evaluate it, if this is the case. If there is no block, it will run
the command the same way as before.
* Add test open files with BlockCommands
* Update open.rs
* Adjust file type on open with BlockCommand parser
Co-authored-by: JT <547158+jntrnr@users.noreply.github.com>
2022-04-02 07:52:32 +13:00
Darren Schroeder
2cb815b7b4
Add starts with operator ( #5061 )
...
* add starts_with operator
* added a test
2022-04-01 13:35:46 -05:00
Fernando Herrera
a088081695
update reedline ( #5062 )
2022-04-01 19:22:40 +01:00
JT
4bb95a880f
let a simple last be a single value ( #5060 )
2022-04-01 23:12:31 +13:00