Michael Angerman
aaec840b91
doc change from engine-q to nushell ( #5134 )
2022-04-08 10:29:21 -07: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
JT
7ce570e52c
Update LICENSE
...
this isn't our crate originally, we adapted it
2022-04-08 21:53:29 +12:00
JT
3a0eded0b8
Delete LICENSE
...
this is dual-licensed, there can't be just one LICENSE file
2022-04-08 21:51:25 +12:00
JT
5afd45414e
Revert "nu-cli/completions: cache layer for fetching ( #5114 )" ( #5132 )
...
This reverts commit e86c1b118e
.
2022-04-08 21:48:27 +12: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
Fernando Herrera
6b4cb8b0e0
short descriptions ( #5130 )
2022-04-08 07:57:39 +01:00
Herlon Aguiar
48fa25fd42
nu-cli/completions: removed default filter for command ( #5126 )
2022-04-07 18:45:04 -05: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
Herlon Aguiar
e86c1b118e
nu-cli/completions: cache layer for fetching ( #5114 )
2022-04-08 07:36:16 +12:00
Herlon Aguiar
5e177fe8e7
nu-cli/completions: fix file completions filtering ( #5122 )
2022-04-08 07:31:56 +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
888369022f
Add datetime to math-like ( #5118 )
...
* Add datetime to math-like
* add test
2022-04-07 18:02:28 +12:00
JT
4409185e1b
Improve describe to be more accurate ( #5116 )
2022-04-07 16:34:09 +12:00
JT
ef1934a7ee
Remove external name exceptions ( #5115 )
2022-04-07 14:01:31 +12:00
JT
591fb4bd36
Add unary not ( #5111 )
2022-04-07 07:10:25 +12:00
Jakub Žádník
12d3e4e424
Add env.nu file for environment config ( #5099 )
...
* Add env.nu file for environment config
* Add missing flag
* Add $nu.env-path variable
Prints `env.nu` path
* Add example of adding entries to PATH
2022-04-07 05:11:51 +12:00
Herlon Aguiar
c3bed1352a
nu-cli/completions: prioritize non hidden folders ( #5108 )
2022-04-06 16:56:43 +01:00
Fernando Herrera
3ceb39c82c
use arc to avoid cloning entire engine for menus ( #5104 )
...
* use arc to avoid cloning entire engine for menus
* remove complete import path
* remove stack clone
* reference in completer
2022-04-06 13:25:02 +01:00
Herlon Aguiar
13869e7d52
nu-cli: refactor completions ( #5102 )
2022-04-06 19:58:55 +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
Fernando Herrera
fa6ed7a40b
allow record as text style ( #5092 )
2022-04-04 22:36:48 +01:00
sholderbach
80f21d37e0
Update reedline to mut Completer API
2022-04-04 23:35:31 +02:00
Darren Schroeder
e2cf4cc7d6
new glob
command ( #5087 )
2022-04-05 08:45:01 +12:00
JT
abe028f930
Add raw strings, use raw strings for env ( #5090 )
2022-04-05 08:42:26 +12:00
Herlon Aguiar
ef1cf7e634
feature: Add some context to completions ( #5078 )
...
* send current line and position
* copy current line
* fix error
* deleted test completion
2022-04-05 06:31:40 +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
Fernando Herrera
608b6f3634
Generic menus ( #5085 )
...
* updated to reedline generic menus
* help menu with examples
* generic menus in the engine
* description menu template
* list of menus in config
* default value for menu
* menu from block
* generic menus examples
* change to reedline git path
* cargo fmt
* menu name typo
* remove commas from default file
* added error message
2022-04-04 15:54:48 +01:00
Reilly Wood
a86e6ce89b
Set LAST_EXIT_CODE on parse error ( #5084 )
2022-04-04 06:11:27 -05:00
Reilly Wood
c4cfbaec2d
Fix Python plugin (missing search terms) ( #5083 )
...
* Add search_terms to Python plugin
* Clean up Python plugin comments
2022-04-03 20:00:53 -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
JT
6649da3f5d
Add support for single value row conditions ( #5072 )
2022-04-03 10:41:36 +12:00
JT
80c9888f82
Add command descriptions to completions ( #5063 )
2022-04-02 08:18:11 +13: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
JT
9beecff736
Add 'date to-record' ( #5058 )
2022-04-01 21:09:30 +13:00
JT
fa0400c3f2
Fix sort signature ( #5055 )
2022-04-01 13:03:07 +13:00
JT
1d2d31580b
Allow strings for prompt env vars ( #5052 )
2022-04-01 12:00:50 +13:00
JT
834f993547
Sort command ( #5054 )
2022-04-01 11:43:16 +13:00
Stefan Holderbach
2193910579
Update reedline to new constructor API ( #5051 )
2022-04-01 11:16:28 +13:00
Reilly Wood
f692da487e
Fix load-env unsupported input error message ( #5039 )
2022-04-01 10:59:04 +13:00
Stefan Holderbach
0986c61a5d
Lift line editor construction out of loop ( #5041 )
...
Enables the use of some features on reedline
- Keeping the line when clearing the screen with `Ctrl-L`
- Using the internal cut buffer between lines
- Submitting external commands via keybinding and keeping the line
Additional effect:
Keep the history around and do basic syncs (performance improvement
minimal as session changes have to be read and written)
Additional change:
Give the option to defer writing/rereading the history file to the
closing of the session ($config.sync_history_on_enter)
2022-03-31 23:25:48 +02:00
msp
6a6471b04b
feat: add --suppress-output (-s) to input command ( #5017 )
...
* feat: add --suppress-output (-s) to input command
* Don't handle cursor position since existing impl doesn't
* Handle all raw mode outcomes
2022-03-31 14:20:31 -05:00
Darren Schroeder
05f7d7d38b
finish hooking up completion descriptions ( #5047 )
2022-03-31 11:13:16 -05:00
Jakub Žádník
d89ad4fafd
Add record, list, and table to signature types ( #5040 )
2022-03-31 11:11:03 +03:00
Fernando Herrera
385bc40627
evaluate indicators as commands ( #5026 )
...
* evaluate indicators are commands
* default strings in config
* default multiline
* removed build string command
2022-03-31 06:22:55 +01:00
Reilly Wood
e2d24c5956
Fix which-support feature ( #5038 )
2022-03-30 13:37:31 -05:00
Michael Angerman
82633e2df7
update nu-glob README ( #5037 )
2022-03-30 10:44:23 -07:00
Reilly Wood
31a4fc41eb
Fix env var shorthand when value contains =
( #5022 )
2022-03-30 09:56:55 +13:00
Reilly Wood
79182db587
Clean up which/which-support Cargo feature ( #5019 )
...
* Rename "which" feature to "which-support"
* Ignore currently broken environment tests
2022-03-29 06:10:43 -05:00
JT
0afa18ac4a
Use real stack during custom completion ( #5010 )
2022-03-29 06:49:41 +13:00
Richard Wang
1aef3a730a
fix: pass metadata to more filter commands for ls_colors
( #5009 )
...
* fix(filters): pass metadata for select
* fix(filters): pass metadata for group, window
* fix(filters): pass metadata for each, every
* fix(filters): pass metadata for collect, compact, flatten
* fix(filters): pass metadata for get
* fix: get rid of necessary `.clone()``
* style: rename closure call to be consistent w/ others
* fix(filters): pass metadata for par-each, prepend
* fix(filters): pass metadata for range
* fix(filters): pass metadata for reject
* fix(filters): pass metadata for more commands
* style: run cargo fmt
2022-03-28 06:43:09 -05:00
JT
2e3b74f1b2
Fix for loop ctrlc not terminating ( #5003 )
2022-03-28 19:13:43 +13:00
JT
a87f53072a
See if levenshtein sorting feels goofor completions ( #5001 )
2022-03-28 13:31:31 +13:00
Jakub Žádník
047081fa72
Add a README about changing capnp schema ( #4998 )
...
* Add a README about changing schema
* Add example PRs
2022-03-27 19:02:19 -05:00
Reilly Wood
5586d4a0a0
did_you_mean: case-insensitive edit distance, tests ( #4999 )
2022-03-27 17:11:56 -05:00
JT
911fba8a8a
Help menu improvements ( #4997 )
...
* Help menu improvements
* default config
2022-03-27 15:21:40 -05:00
Jakub Žádník
2873e943b3
Add search terms to Command and Signature ( #4980 )
...
* Add search terms to command
* Rename Signature desc to usage
To be named uniformly with extra_usage
* Throw in foldl search term for reduce
* Add missing usage to post
* Add search terms to signature
* Try to add capnp Signature serialization
2022-03-27 22:25:30 +03:00
Fernando Herrera
a4410fef40
Help menu ( #4992 )
...
* nu-completer with suggestions
* help menu with scrolling
* updates description rows based on space
* configuration for help menu
* update nu-ansi-term
* corrected test for update cells
* changed keybinding
2022-03-27 14:01:04 +01:00
Reilly Wood
0011f4df56
Check same-string-different-case in did_you_mean ( #4991 )
2022-03-27 19:21:39 +13:00
Darren Schroeder
ee5064abed
Nu ansi term update ( #4988 )
...
* WIP: Testing 0.45.1 nu-ansi-term with the new Default colors
* point reedline to git in cargo.toml
2022-03-27 16:57:31 +13:00
JT
82e3bb0f38
Bump nushell to 0.60.1 ( #4987 )
2022-03-27 16:18:47 +13:00
Andrew Barnes
319930a1b9
Add streaming support to save for ExternalStream data ( #4985 )
...
* Add streaming support to save for ExternalStream data
Prior to this change, save would collect data from an ExternalStream (data
originating from externals) consuming memory for the full amount of data piped
to it,
This change adds streaming support for ExternalStream allowing saving of
arbitrarily large files and bounding memory usage.
* Remove broken save test
This test passes but not for the right reasons, since this test was
written filename has become a required parameter. The parser outputs
an error but the test still passes as is checking the original un-mutated
file assuming save has re-written the contents.
This change removes the test.
```
running 1 test
=== stderr
Error: nu::parser::missing_positional (https://docs.rs/nu-parser/0.60.0/nu-parser/enum.ParseError.html#variant.MissingPositional )
× Missing required positional argument.
╭─[source:1:1]
1 │ open save_test_1/cargo_sample.toml | save
· ▲
· ╰── missing filename
╰────
help: Usage: save {flags} <filename>
test commands::save::figures_out_intelligently_where_to_write_out_with_metadata ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 515 filtered out; finished in 0.10s
```
2022-03-27 15:39:27 +13:00
Andrew Barnes
a64e0956cd
Support binary data to stdin of run-external ( #4984 )
...
* Add test for passing binary data through externals
This change adds an ignored test to confirm that binary data is passed
correctly between externals to be enabled in a later commit along with
the fix.
To assist in platform agnostic testing of binary data a couple of
additional testbins were added to allow testing on `Value::Binary` inside
`ExternalStream`.
* Support binary data to stdin of run-external
Prior to this change, any pipeline producing binary data (not detected
as string) then feed into an external would be ignored due to
run-external only supporting `Value::String` on stdin.
This change adds binary stdin support for externals allowing something
like this for example:
〉^cat /dev/urandom | ^head -c 1MiB | ^pv -b | ignore
1.00MiB
This would previously output `0.00 B [0.00 B/s]` due to the data not
being pushed to stdin at each stage.
2022-03-27 15:35:59 +13:00
Andrew Barnes
91e17d2f9f
Limit mem usage + back-pressure via bounded channels ( #4986 )
...
Prior to this change, a pipeline of externals would result in high memory
usage if any of the producers in the chain, produced data faster than
the consumers.
For example a pipeline:
> fast-producer | slow-consumer
Would cause a build up of `Value::{String,Binary}`'s in the mpsc channels
between each command as values are added to the channels faster than they
are consumed, eventually OOM'ing depnding on system resources, the volume
of data and speed diff. between fast v's slow.
This change replaces the unbounded channels with bounded channels
to limit the number of values that can build up and providing
back-pressure to limit ram usage.
2022-03-27 15:34:34 +13:00
Darren Schroeder
56a546e73d
fix ls when file is a socket on mac ( #4983 )
2022-03-26 21:26:39 -05:00
JT
cf88c8eef3
Improve escaping in string interpolation ( #4982 )
2022-03-27 12:52:09 +13:00
Jakub Žádník
3484e0defd
Add parser keyword note to help and $nu.scope ( #4978 )
2022-03-26 21:22:45 +02:00
Jakub Žádník
79e4d35f01
Remove is_private from $nu.scope.commands ( #4979 )
2022-03-26 21:22:35 +02:00
Scott Boggs
71dd857926
Termux/Android target support for v0.60.0 ( #4956 )
...
* Add android as target os for procfs-based ps
* Turn off code for dealing with trash on platforms which are known to not support a standard trash protocol
* Update lib.rs
* Update lib.rs
Co-authored-by: JT <547158+jntrnr@users.noreply.github.com>
2022-03-27 07:21:19 +13:00
Hristo Filaretov
7a789d68a2
Don't include trailing separator when expanding tilde ( #4974 )
...
* Fix path when expanding tilde
Expanding tilde with no other relative paths would result in:
`$HOME/` instead of `$HOME`. This occurs when users run `cd` with
no extra arguments. In that case, the user's PWD would include the
trailing separator. This does not happen when explicitly passing
a value, such as `cd ~`, because in that case, the path would be
canonicalized.
This happens because std::path::PathBuf::push always adds a separator,
even if adding an empty path, which is what happens when `cd` is
invoked.
* Add test
* Fix test on Windows
Co-authored-by: Hristo Filaretov <h.filaretov@protonmail.com>
2022-03-27 06:28:31 +13:00
Hristo Filaretov
8a9cc33aac
Fix alias import ( #4968 )
...
* Fix alias import
Alias importing was registering the alias id as a decl instead of alias.
This caused issues when hiding and then reimporting the alias.
* Clippy format
Co-authored-by: Hristo Filaretov <h.filaretov@protonmail.com>
2022-03-25 17:56:40 -05:00
JT
66087b01e6
Improve the 'use' and 'source' errors ( #4966 )
...
* Improve the 'use' and 'source' errors
* Add register
2022-03-26 10:43:46 +13:00
JT
19fa41b114
Fix single quote environment values ( #4960 )
...
* Fix single quote external values
* Try to fix windows
* fix test
* fix test
2022-03-26 09:14:48 +13:00
JT
91cd1717e9
Add escapes to 'to nuon' ( #4964 )
2022-03-26 08:35:37 +13:00
JT
12b85beecc
Fix path join on streams ( #4959 )
2022-03-26 07:46:48 +13:00
Michael Angerman
2252833917
bump cargo crate sys-locale to the latest version ( #4957 )
2022-03-25 10:00:35 -07:00
JT
4e9c1067fb
Fix 4946 ( #4951 )
...
* Fix reject
* test
* clippy
2022-03-25 20:48:01 +13:00
Michael Angerman
e505e57a7a
align all of the serde_json crates to the same version ( #4949 )
2022-03-25 18:54:49 +13:00
JT
d122827a30
Fix operator precedence parser ( #4947 )
2022-03-25 16:23:08 +13:00
Justin Ma
b007290a4e
Fix #4942 , and add a table sorting example for sort-by
command ( #4948 )
...
* Fix #4942 , and add a table sorting example for `sort-by` command
* ci skip
2022-03-25 16:22:57 +13:00
Michael Angerman
9b5dff828d
bump csv crate to the latest 1.1.6 ( #4939 )
2022-03-24 12:59:27 -05:00
Tomoki Aonuma
90013295aa
Fix parse_string_strict() to detect unbalanced quotes properly ( #4928 )
2022-03-25 05:57:03 +13:00
Jonathan Moore
ea7c8c237e
CantConvert improvements ( #4926 )
...
* CantConvert improvements
* cargo fmt
2022-03-24 07:04:31 -05:00
JT
5d5b02d8dc
Don't assume external ls
( #4925 )
2022-03-24 16:42:41 +13:00
Vishal Sodani
00b67d338d
added missing metadata for drop and uniq #4763 ( #4908 )
...
* added missing metadata for drop and uniq #4763
* added missing metadata for keep #4763
* added missing metadata for append #4763
* added missing metadata for shuffle #4763
2022-03-24 07:27:01 +13:00
Darren Schroeder
d32e878868
rename export def to export alias ( #4912 )
...
copy-n-paste error
2022-03-23 07:53:10 -05:00
Justin Ma
e9f9aab79f
chore: Update default register examples ( #4904 )
2022-03-23 20:41:58 +13:00
LebsterFace
e826540037
Pass /D
flag to cmd.exe
to disable AutoRun ( #4903 )
...
* Pass `/D` flag to `cmd.exe` to disable AutoRun
* Pass `/D` flag before `/c`
This avoids running the command '/D <&self.name.item>' in cmd
2022-03-23 19:05:06 +13:00
JT
81e269c483
Update Cargo.toml
2022-03-23 09:44:03 +13:00
JT
eceae26b0a
Update Cargo.toml
2022-03-23 09:39:03 +13:00
JT
ec5fd62f9f
Add licenses ( #4893 )
...
* Add licenses
* Add licenses
2022-03-23 09:25:38 +13:00
JT
1c964cdfe7
Bump to 0.60 ( #4892 )
...
* WIP
* semi-revert metadata change
2022-03-23 07:32:03 +13: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
JT
e6a5011fdb
Allow 'error make' to make simple errors ( #4881 )
...
* Allow 'error make' to make simple errors
* Add example
2022-03-20 16:25:45 +13:00
JT
bd5778fa24
remove the boolean vars ( #4879 )
2022-03-20 08:12:10 +13:00
JT
f3bb1d11d3
Add export alias
and export extern
( #4878 )
...
* export alias
* export extern
2022-03-20 07:58:01 +13:00
Darren Schroeder
285f91e67a
add module name to $nu.scope.commands
info ( #4877 )
2022-03-19 10:58:56 -05:00
Darren Schroeder
01c1e5e8b0
commands are either custom or builtin, not both ( #4876 )
...
* commands are either custom or builtin, not both
* clippy
2022-03-19 09:52:50 -05:00
Fernando Herrera
d6669d3f33
Polars update ( #4875 )
...
* update to polars 0.20
* add to date parser for series
2022-03-19 11:13:34 +00:00
JT
b293282e9b
Add insert/update to lists ( #4873 )
2022-03-19 10:12:54 +13:00
JT
983d115bc0
Add an alias denylist for expansions ( #4871 )
2022-03-19 08:03:57 +13:00
Darren Schroeder
5a1af4d661
fixed a couple more tests ( #4870 )
2022-03-18 12:35:28 -05:00
Darren Schroeder
4f05e9f4a6
add a display of what the colors look like in ansi --list
( #4866 )
...
* add a display of what the colors look like in `ansi --list`
* change 'color' to 'preview' - add the ability to turn it off via config with use_ansi_coloring
2022-03-18 06:27:33 -05:00
JT
7773c4cd4d
Fix single quote external interpolation ( #4867 )
2022-03-18 19:59:28 +13:00
JT
d0cbb2d12c
Allow expanding aliases before keywords, improve hiding ( #4858 )
...
* Allow aliasing source
* Add test
* improve hiding
* Finish adding tests
* fix test
2022-03-18 11:35:50 +13:00
JT
0986eefb64
Add insert and update back ( #4864 )
2022-03-18 06:55:02 +13:00
Darren Schroeder
6e69d40bb9
some tweaks to main for testing ( #4862 )
2022-03-17 11:32:54 -05:00
Stefan Holderbach
9db356e174
Remove nu-ansi-term from the tree, use reedline 0.3 ( #4850 )
...
To simplify use of nu-ansi-term in both nushell/nushell and
nushell/reedline remove it from the workspace to have a separate
progression of version numbers.
This allows reedline to use the latest published version and nushells
workspace to use the same most recent version
Changes the `Cargo.toml`s to use reedline from crates.io
Co-authored-by: JT <547158+jntrnr@users.noreply.github.com>
2022-03-17 15:29:52 +13:00
Darren Schroeder
6700fbeed7
rename update
to upsert
to mirror what it really does ( #4859 )
...
* rename `update` to `upsert` to mirror what it really does
* change to latest reedline and nu-ansi-term
2022-03-16 19:13:34 -05:00
Darren Schroeder
ca12f39db3
added nu-utils
crate, fixed issue where externals turn off vt processing ( #4857 )
...
* added `nu-utils` crate, fixed issue where externals turn off vt processing
* hopefully make work in non-windows environments
* clippy
2022-03-16 17:21:06 -05:00
Charles Dixon
1a16b9a2c4
Move repl loop and command/script execution to nu_cli ( #4846 )
...
* Refactor usage of is_perf_true to be a parameter passed around
* Move repl loop and command/script execution to nu_cli
* Move config setup out of nu_cli
* Update config_files.rs
* Update main.rs
Co-authored-by: JT <547158+jntrnr@users.noreply.github.com>
2022-03-17 07:17:06 +13:00
JT
0bd8664f33
Fix string interpolation escaping ( #4854 )
2022-03-16 05:09:30 +13:00
Reilly Wood
cb5d997adf
Change update help+examples for creating new columns ( #4849 )
...
* Change update help/examples for creating new column
* Enable example tests for update command
2022-03-14 15:32:33 -05:00
Justin Ma
10d805c1fa
feat: fix and update some examples ( #4844 )
2022-03-14 07:41:09 -05:00
JT
54d9fff4f2
Revert "Alias to keywords (eg source
) ( #4835 )" ( #4841 )
...
This reverts commit c023d4111a
.
2022-03-13 13:38:16 -07:00
Jakub Žádník
72daf8c64e
Fix reporting of which
and $nu.scope
( #4836 )
...
* 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
JT
c023d4111a
Alias to keywords (eg source
) ( #4835 )
...
* Allow aliasing source
* Add test
2022-03-13 11:30:37 -07:00
JT
ff3dffd813
Nu glob ( #4818 )
...
* Fork glob. Normalise license holder
* Fix more licenses
* unwraps
* bad doc test
2022-03-13 11:30:27 -07:00
Fernando Herrera
30bb090cd4
str to datetime dfr ( #4833 )
...
* str to datetime dfr
* change description
2022-03-13 13:53:13 +00:00
Andrew Barnes
dfffd45bcd
Streaming support for lines with raw streams ( #4832 )
2022-03-13 04:52:55 -07:00
Jakub Žádník
c73d8d5f95
Add LIB_DIRS and PLUGIN_DIRS ( #4829 )
...
* Add LIB_DIRS and PLUGIN_DIRS
* Put plugin dirs behind plugin feature
2022-03-12 22:12:15 +02:00
Darren Schroeder
0ff9cc679e
add $nu.pid
( #4828 )
2022-03-12 10:54:59 -06:00
Darren Schroeder
ccc85a2979
remove $nu.cwd
( #4824 )
2022-03-12 09:11:19 -06:00
Fernando Herrera
005301647a
equal comparisson series string ( #4823 )
2022-03-12 13:15:30 +00:00
Jakub Žádník
90b2ec537f
Do not pass non-string env vars to externals ( #4748 )
...
* 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
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
Justin Ma
ce690ed18f
Bump sysinfo version from v0.22.2 to v0.23.5, close #3909 ( #4810 )
2022-03-10 11:38:32 -05:00
JT
2b3843c7c0
ensure exit codes in more cases ( #4804 )
2022-03-10 07:32:46 -05:00
JT
9abb14b5fd
ensure exit codes in more cases ( #4803 )
2022-03-10 06:29:23 -05:00
JT
12bf23faa6
Move completions to DeclId ( #4801 )
...
* Move completions to DeclId
* fmt
* fmt
2022-03-10 09:49:02 +02:00
Justin Ma
643cce8a6f
Mark match
as deprecated command ( #4802 )
2022-03-09 20:58:42 -06:00
JT
3bdd924349
Fixes the panic when using externs + string interpolation ( #4799 )
2022-03-09 13:01:23 -05:00
JT
be43b3c5fc
Allow passing block literals to do ( #4798 )
2022-03-09 09:56:19 -05:00
JT
355b1d9929
Simplify empty?
, improve default
( #4797 )
...
* Simplify empty?, improve default
* improve test
2022-03-09 08:46:28 -05:00
Justin Ma
0d82d7df60
Update documents for commands ( #4796 )
...
* Update documents of commands
* Change plugin names for register command examples
* Remove unused docs [ci skip]
2022-03-09 08:05:35 -05:00
JT
8fcf51908a
Fix expansion of row condition implied it ( #4795 )
2022-03-09 08:05:03 -05:00
JT
925e9f4dcb
Allow quotes in a register
call ( #4793 )
2022-03-09 07:06:44 -05:00
JT
e0fac7bc72
Change select
to match 0.44 ( #4792 )
2022-03-09 07:05:55 -05:00
JT
fac086c826
Make reduce -n
more sensible ( #4791 )
2022-03-09 05:56:08 -05:00
JT
088d19ad47
Make date values more readable ( #4790 )
2022-03-09 05:43:04 -05:00
JT
2ac990655e
Add support for var decl spans ( #4787 )
2022-03-09 04:42:19 -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
dc0c5a9772
Revert "Make if
blocks work like a def-env ( #4656 )" ( #4782 )
...
This reverts commit 477f3be8df
.
2022-03-08 08:29:12 -05:00
JT
477f3be8df
Make if
blocks work like a def-env ( #4656 )
...
* Make `if` work like a def-env
* Add some tests
* Add an example
2022-03-08 07:45:47 -05: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
35ff1076f3
add ansi escape ( #4772 )
...
* add ansi escape
* also add the ability to escape parens
* add a few more escapes that could be problematic for the nushell lang
2022-03-07 16:39:16 -06:00
JT
1837bf775c
Default values ( #4770 )
2022-03-07 15:08:56 -05:00
Genna Wingert
0a95bc7e60
Add serialization for JSON and form bodies in post
( #4764 )
...
* Add serialization for JSON and form bodies in `post`
* Reuse code from `to json` instead of duplicating
* Fix formatting. Oops
2022-03-07 10:49:45 -06:00
JT
a2723c2ba4
Fix rest parsing ( #4765 )
...
* More nuon tests, fix table print
* Fix rest type parsing
2022-03-07 11:44:27 -05:00
JT
0b6b321ad6
More nuon tests, fix table print ( #4762 )
2022-03-07 08:39:02 -05:00
JT
4f43d75130
Simplify group/window into their own commands ( #4760 )
2022-03-06 20:01:29 -05:00
Michael Angerman
fbbbde1489
Update the Readme for the dataframe directory ( #4757 )
...
* update dataframe readme
* update df readme
2022-03-06 11:05:55 -08:00
Fernando Herrera
7701c6b1d4
added real index column to history ( #4756 )
2022-03-06 17:22:18 +00:00
Darren Schroeder
5ae5ef5146
enable to-nu to include the whole dfr if rows is not specified ( #4753 )
2022-03-06 09:04:41 -06:00
Genna Wingert
4aa9a18c63
Allow save to accept a list of strings ( #4743 )
2022-03-05 15:56:04 -06:00
Genna Wingert
1527b34d9c
Add back --append
flag to save
command ( #4744 )
2022-03-05 13:36:58 -06:00
JT
a4a8f5df54
Add more multiline pipeline forms ( #4740 )
2022-03-05 08:20:13 -05:00
JT
9c17c73d5f
Add more exit code support ( #4730 )
2022-03-04 17:46:18 -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
Darren Schroeder
fbb2e7136c
match is now in the find command ( #4727 )
2022-03-04 11:29:45 -06:00
JT
e64ca97fe2
move scope variable into nu variable ( #4725 )
2022-03-04 11:36:11 -05:00
JT
eef3de2d05
Move old plugins ( #4721 )
2022-03-04 09:36:03 -05:00
Justin Ma
1157fcf372
fix typo, update some examples and regenerate docs ( #4718 )
2022-03-04 06:10:09 -06:00
Genna Wingert
47d5501f9f
Add aliases to command completions ( #4708 )
2022-03-03 15:07:13 -05:00
Genna Wingert
97b3e4a233
Fix aliases to known externals ( #4707 )
2022-03-03 14:05:55 -05:00
Daniel Reilly
52f4c4ba7e
Adds tab indentation option for JSON files. ( #4705 )
2022-03-03 13:15:13 -05: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
Genna Wingert
13f2048ffb
Add completion options for custom completions ( #4674 )
...
* Add completion options for custom completions
* Make clippy happy
* Refactor options for clarity
* Make return type of filtering explicit
2022-03-03 09:45:35 -05:00
Yutaro Ohno
210d25f2a0
Add into duration
( #4683 )
...
* Add `into duration` command
* Avoid using unwrap()
* Use existing logic to parse duration strings
2022-03-03 08:16:04 -05:00
Fernando Herrera
2fd42d25b1
partial completions ( #4704 )
2022-03-03 11:13:44 +02:00
Jakub Žádník
d90b7953dd
Use Nushell's PATH in which ( #4690 )
...
* Make which use our path instead of std::env
* Unignore which test
* Fix wrong fn signature without which feature
2022-03-03 10:38:31 +02:00
JT
96a1bf5f8d
Experiment: Allow both $true/true and $false/false ( #4696 )
...
* Change true/false to keywords
* oops, clippy
* Both kinds of bools
* Add in some boolean variables
* disable py virtualenv test for now
2022-03-02 19:55:03 -05:00
JT
fd88920a9d
Make sure we have text before json parse ( #4697 )
2022-03-02 15:58:56 -05:00
JT
88d7b50e37
Pass redirects into call ( #4694 )
...
* Pass redirects into call
* Oops, format
2022-03-02 07:52:24 -05:00
JT
4965f4cbf4
Bump to 0.59.1 ( #4689 )
2022-03-01 16:55:51 -05:00
Justin Ma
42f1874a3a
Update some examples and docs ( #4682 )
...
* Update some examples and docs
* Update now.rs
* Update date_now.md
Co-authored-by: JT <547158+jntrnr@users.noreply.github.com>
2022-03-01 08:05:29 -05:00
JT
2a89936bee
Move to latest stable crossterm, with fix ( #4684 )
2022-03-01 07:05:46 -05:00
Fernando Herrera
ece5e7dbb7
dataframe list command ( #4681 )
2022-03-01 06:41:13 -05:00
JT
a6a96b29cb
Add binary literals ( #4680 )
2022-02-28 18:31:53 -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
Justin Ma
b09acdb7f9
Fix unsupported type message for some math related commands ( #4672 )
...
* 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
JT
10364c4f22
don't use table compaction in to nuon if not a table ( #4671 )
...
* don't use table compaction in to nuon if not a table
* Make a proper nuon conversion test
* more nuon tests
2022-02-28 07:10:02 -05:00
Jonathan Moore
ef70c8dbe4
Date parse refactor ( #4661 )
...
* More flexible and DRY datetime parsing
* Update error messages
* cargo fmt
* clippy
* Add DatetimeParseError
2022-02-27 20:21:46 -05:00
Darren Schroeder
796d4920ab
add char separators ( #4667 )
...
* add char separators
* sir clipster
* unclippy
2022-02-27 16:03:21 -06:00
JT
7819210037
Add shortcircuiting boolean operators ( #4668 )
2022-02-27 17:02:53 -05:00
Fernando Herrera
4ebbe07d27
Polars upgrade ( #4665 )
...
* polars upgrade
* Update describe.rs
Co-authored-by: JT <547158+jntrnr@users.noreply.github.com>
2022-02-27 11:10:29 -05:00
Fernando Herrera
995757c055
flags for find ( #4663 )
2022-02-27 06:17:13 -05:00
Stefan Holderbach
799fa98411
Update reedline, revert crossterm ( #4657 )
...
At the moment `crossterm` apparently has a regression decoding certain important key combinations on Windows.
Thus reedline reverted to the previous version.
Some changes are necessary to remove the need for `crossterm` in the use of `lscolors`.
Introduces two local conversion traits.
Additionally update the `Highlighter` API to support the cursor
position.
This will enable brace/statement match highlighting.
2022-02-26 11:23:05 -06: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
Jae-Heon Ji
ed46f0ea17
fix: add missing metadata for ls_colors
( #4603 )
...
* feat: add metadata to roll
* chore: apply clippy
* fix: apply clippy
* fix: revert clippy
2022-02-25 17:31:02 -05:00
JT
0c3ea636fb
Add support for stderr and exit code ( #4647 )
2022-02-25 14:51:31 -05:00
JT
977ef66356
Fix Windows doc comments ( #4643 )
...
* WIP windows doc comments
* WIP windows doc comments
* WIP windows doc comments
* actual fix this time
2022-02-25 13:03:39 -05:00
Justin Ma
e6570b41ca
Fix some examples and regenerate docs, should fix : #4455 ( #4639 )
2022-02-25 08:14:15 -05:00
JT
2126bef052
clean table text before rendering ( #4638 )
2022-02-25 08:13:55 -05:00
JT
e8a6458f0d
finish up with examples ( #4637 )
2022-02-25 05:19:25 -05:00
JT
70009c015d
Use metadata with lists ( #4635 )
...
* Windows external exceptions
* Also use metadata with lists
2022-02-25 04:27:50 -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
Justin Ma
2c9d8c4818
fix : #3809 , try to fix the source -h
not work issue ( #4627 )
2022-02-24 10:32:10 -05:00
JT
308ab91aff
Speed up the parser and nuon parser a bit more ( #4626 )
2022-02-24 07:58:53 -05:00
Justin Ma
c3979ef1cf
Add example for command n,g,p and grid, update date now examples ( #4622 )
2022-02-24 06:17:05 -06:00
Michael Angerman
784382edde
30 web_tables tests are now passing ( #4623 )
2022-02-24 06:58:20 -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
Michael Angerman
63487941fb
add back in the tests for query_web in the nu_plugin_query ( #4614 )
...
* fix first test
* fix 2nd query_web test
2022-02-23 10:43:36 -06:00
JT
676457acd3
Better ls paths ( #4612 )
...
* Fix ls paths... again
* Fix ls paths... again
* Always expand paths inside of glob_from
* Expand in ls before we check for directory info
2022-02-23 10:54:47 -05:00
Darren Schroeder
f507613b38
fixed some more tests ( #4607 )
2022-02-22 11:32:29 -05:00
JT
25712760ba
Add support for math-like externals ( #4606 )
2022-02-22 10:55:28 -05:00
Justin Ma
d054a724d1
Add example for enter, shells and view-source, update some docs ( #4604 )
2022-02-22 09:16:56 -06:00
Fernando Herrera
c2bad71123
remove repeated function ( #4600 )
...
* remove repeated function
* name in signature
2022-02-22 08:13:38 -05:00
JT
3e8a41fbc9
Speedup unit parse ( #4598 )
...
* Compact nuon tables
* Speed up unit parsing a bit
2022-02-22 04:50:49 -05:00
JT
31925c3d40
Compact nuon tables ( #4596 )
2022-02-21 20:48:42 -05:00
JT
9888f8f298
Add pipeline redirection support ( #4594 )
...
* 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 ( #4591 )
...
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 ( #4592 )
...
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
6d4784a7c1
Make 'each' implicitly filter out nothings ( #4546 )
...
* Make 'each' implicitly filter out nothings
* another example
2022-02-21 15:49:08 -05:00
Darren Schroeder
88fa40d698
rename flatshape_*
to shape_*
( #4589 )
2022-02-21 12:27:21 -06:00
JT
24fc9c657e
Add binary support to 'skip' ( #4588 )
...
* Add binary support to 'skip'
* add streaming
2022-02-21 13:23:43 -05:00
JT
6670b77b27
Fix shorthand env duplicates ( #4587 )
2022-02-21 12:58:04 -05:00
Justin Ma
53b5012f1e
feat: update: #4518 , Add examples for command: use,module,export def,export env and export def-env ( #4584 )
2022-02-21 09:32:31 -06:00
Jae-Heon Ji
d1ec05b12b
fix: lose ls_colors
in some filters commands ( #4525 )
...
* feat: add metadata to first
* feat: add metadata to last and skip
* feat: add metadata to reverse
* fix: apply clippy
2022-02-21 08:29:51 -06:00
JT
a2c4c92fce
Remove record iteration ( #4582 )
...
* Remove record iteration
* Remove test
2022-02-21 09:12:04 -05:00
Justin Ma
917886f8ad
feat: update: #4518 , Add examples for command: hide, history, from yml, def-env, and table ( #4581 )
2022-02-21 07:52:50 -06:00
Joseph T. Lyons
4f367a59de
Strip trailing whitespace in files ( #4575 )
...
* Strip trailing whitespace in rs files
* Strip trailing whitespace in toml files
* Strip trailing whitespace in md files
* Strip trailing whitespace in nu files
2022-02-21 08:38:15 -05:00
Justin Ma
968427c4e9
feat: update: #4518 , Add example for register,source,save,shuffle and from tsv ( #4577 )
2022-02-21 06:25:41 -06:00
JT
d454fad4dc
Improve json errors a bit ( #4579 )
...
* Improve json errors a bit
* typo
2022-02-21 07:08:09 -05:00
JT
a96f8b891e
more strict nuon handling, better nuon errors ( #4576 )
...
* more strict nuon handling, better nuon errors
* Improve errors a bit more
2022-02-20 22:31:50 -05:00
Joseph T. Lyons
5bf2ffeaf5
Add indent flag to to json
(first draft) ( #4571 )
...
* Add indent flag to `to json` (first draft)
* Run cargo fmt
* Update examples / tests
* Change order of examples
2022-02-20 16:29:19 -06:00
Darren Schroeder
9b2a022f5b
tweak default config to amplify theme-ability ( #4572 )
...
* tweak default config to amplify theme-ability
* missed default of auto
2022-02-20 16:05:36 -06:00
JT
fd22211737
Add nuon format for fun ( #4401 )
...
* 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 ( #4570 )
...
* A few fixes to docs generation and default config
* A few more fixes
2022-02-20 15:20:41 -05:00
JT
6024a17a5b
Remove stray println ( #4568 )
...
* Default config improvements
* Finish cleanup
* Add some comments
* remove println
2022-02-20 09:41:16 -05:00
Jakub Žádník
56aacc4852
Use environment variable for env_conversions ( #4566 )
...
* 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
643c5097d6
Default config improvements ( #4565 )
...
* Default config improvements
* Finish cleanup
* Add some comments
2022-02-20 07:48:46 -05:00
JT
9ea5a2ecd3
Improve missing param error span ( #4560 )
2022-02-19 21:30:29 -05:00
JT
a32ce93c79
Improve full help for flags ( #4559 )
2022-02-19 21:25:52 -05:00
eggcaker
b92aaf0432
add custom header ability to post command ( #4558 )
2022-02-19 19:27:48 -06:00
Justin Ma
aea4355d04
refactor: change column names from 'Column*' to 'column*' ( #4556 )
2022-02-19 19:26:47 -05:00
Darren Schroeder
7163721571
a few more ansi escape sequences ( #4553 )
2022-02-19 16:47:52 -06:00
Joseph T. Lyons
efd62f917f
Reduce code duplication in to json
command ( #4551 )
2022-02-19 14:46:20 -06: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
Joseph T. Lyons
3ecf17e7af
Fix ps
command to show process name only ( #4544 )
...
* Fix `ps` command to show process name only
* Remove `command_only` - it is no longer being used
2022-02-18 19:48:52 -06:00
Joseph T. Lyons
28b5399fb7
Use join over custom join code ( #4548 )
2022-02-18 19:07:11 -06:00
Justin Ma
3f14b75153
feat: add examples for length,lines,reject,benchmark and drop column ( #4547 )
2022-02-18 19:03:24 -06:00
JT
d53eaac7a1
Improve comparison errors ( #4541 )
2022-02-18 17:11:27 -05:00
JT
f085bd97f6
Add some more builtin var completions ( #4540 )
2022-02-18 14:34:40 -05:00
Jakub Žádník
c893cc1485
Add config to NuCompleter ( #4538 )
2022-02-18 13:54:13 -05:00
Eli Flanagan
e5bf56a7dd
port post ( #4537 )
...
This restores a basic version of the `post` command.
Some source types have been omitted from this first take.
I copied from `fetch` and from `post`@0.40.0.
Part of #4356
2022-02-18 13:53:10 -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
Jakub Žádník
f65955ccc5
Fix wrong FlatShape name of List ( #4532 )
2022-02-18 18:31:28 +02:00
Justin Ma
1235d516a5
Add examples for env,let-env,rm,touch and date list-timezone ( #4531 )
...
* feat: update #4518 , add examples for env,let-env,rm,touch and date list-timezone
* fix typo
* update example for `date list-timezone` command
2022-02-18 18:19:37 +02:00
Justin Ma
dd11be03be
feat: update #4518 , add command examples for def, do, cp, mv, mkdir and ls ( #4528 )
2022-02-18 08:30:16 -06:00
Justin Ma
a5f9ad2a43
Add or update examples for some commands ( #4521 )
...
* chore: add or update examples for some commands
* chore: code formatting
2022-02-18 07:06:52 -06:00
Darren Schroeder
1377693f0f
standardize char nf terms ( #4520 )
2022-02-18 05:52:48 -05:00
Jakub Žádník
bccce0ab46
Use overlay ID for module import lookup ( #4514 )
...
* Add id to import pattern
* Finish testing importing in a block
2022-02-17 20:58:24 -05:00
Jakub Žádník
c7c427723b
Test support fixes ( #4517 )
...
* Fix failing pipeline()
The `skip(1)` was there likely to remove the welcome message.
* Fix typo
* Fix nu! test macro to enter cwd correctly
Nushell's current working directory is determined primarily by the PWD
environment variable.
2022-02-18 00:23:04 +02:00
Darren Schroeder
d4cd3f9578
allow dfr open
to open tsv
files ( #4516 )
2022-02-17 14:15:17 -06:00
Darren Schroeder
9415352447
remove $nu.keybinding-path ( #4515 )
2022-02-17 14:36:08 -05:00
Genna Wingert
8f5b857fcf
Fix ignore to run side effects of previous command ( #4510 )
...
Co-authored-by: Genna Wingert <wingertge@gmail.com>
2022-02-17 12:49:54 -05:00
JT
fa75c93765
Slight cleanup of 'from json' line-at-a-time ( #4512 )
2022-02-17 12:49:31 -05:00
JT
393cb7ca6f
Treat ls
for absolute paths as-is ( #4513 )
...
* Absolute paths in ls are treated as-in
* Better fix
2022-02-17 12:49:20 -05:00
JT
f5f9d56c37
Move to a standard kebab/snake style ( #4509 )
2022-02-17 09:55:17 -05:00
JT
6e733f49bc
Require block params ( #4505 )
...
* Require block params
* Improve errors
2022-02-17 06:40:24 -05:00
Darren Schroeder
b8b2737890
make find case insensitive ( #4502 )
2022-02-16 19:42:40 -06: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
Darren Schroeder
b64ac9eb7b
more test fixes ( #4499 )
...
* more test fixes
* update multi-os err messages
2022-02-16 12:24:45 -06:00
JT
5b6156687e
Use partial_cmp and make -i case insensitive ( #4498 )
...
* Use partial_cmp and make -i case insensitive
* Insensitive sort multiple columns
2022-02-16 11:12:49 -05: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
644435bfe3
Move and enable with-env test ( #4489 )
2022-02-16 04:59:44 -05:00
Michael Angerman
bd96ce4e9c
add more examples to the sys command ( #4491 )
2022-02-15 21:06:38 -08:00
Darren Schroeder
7e6430def0
a few more tests ( #4488 )
2022-02-15 20:48:32 -05:00
JT
e763a8dcef
Auto-hide aliases to prevent recursion ( #4487 )
2022-02-15 17:36:24 -05:00
JT
df07e8e410
Fix view-source command ( #4486 )
2022-02-15 17:03:06 -05:00
Jonathan Moore
f824388f63
Date format list ( #4485 )
...
* Add `date format --list`, and make format string optional (providing default)
* Make DRY
`into datetime --list` now uses `generate_strfttime_list` from `date format --list`
* refactor strftime to use current datetime
* Fix formatting of specification descriptions
Fixes issues caused when copying directly from docs.rs
* Change default format to rfc2822
Perhaps to make it more DRY, functions from `into datetime` can be used. However, currently `into datetime` is a bit tricky to use as it needs a separate time zone argument.
* Tweak in-shell docs to match modified behavior
* Show %#z format specifier in `into datetime --list` only
* cargo fmt
* Satisfy clippy
2022-02-15 15:13:40 -06:00
Darren Schroeder
f11fa99d30
check to make sure we have data first ( #4484 )
2022-02-15 15:08:11 -06:00
JT
56b3fc61a3
Remove statements, replaced by pipelines ( #4482 )
2022-02-15 14:31:14 -05:00
JT
66669d7839
Fix more command tests ( #4481 )
2022-02-15 10:08:07 -05:00
JT
5c1a1be02b
Don't error on failed external expansion ( #4480 )
2022-02-15 08:47:25 -05:00
JT
9114a2d31d
Ensure that reduce has a valid span ( #4479 )
2022-02-15 07:59:51 -05:00
JT
84f85ff9ae
Fix to json
escape logic ( #4478 )
2022-02-15 06:55:57 -05:00
JT
a743db8e8f
Improve alias expansion, again ( #4474 )
2022-02-14 21:09:21 -05:00
JT
fbaafaa459
Make param parsing more resilient, correct missing param error ( #4470 )
2022-02-14 12:33:47 -05:00
Michael Angerman
63a2c2bc2d
remove ignore for sort_by command test by_column which is now passing ( #4465 )
2022-02-13 20:46:12 -08:00
JT
8c0a2d3c15
Auto-generate markdown command docs ( #4451 )
...
* Finish updating
* a couple improvements
* Update renames
* cleanup examples
2022-02-13 21:22:51 -05:00
Michael Angerman
06f5affc0b
add in the Value List to the sort-by Ordering ( #4464 )
2022-02-13 10:20:50 -08:00