WindSoilder
fbe9d6f529
Highlight source value as well as failure point. ( #6442 )
...
* show multiple errors at once for some commands
* change from invalid item to source value
2022-09-01 12:20:22 +02:00
unrelentingtech
b27148d14b
Fix build on *BSD, illumos, etc. ( #6456 )
...
* nu-path: use 'linux' code on all non-macOS unix
* nu-command: cfg() the Ps command to platforms it's actually implemented on
* nu-system: cfg() the Ps test to the platforms Ps is implemented on
2022-09-01 12:34:26 +12:00
Darren Schroeder
4858a9a817
Revert "Add support for optional list stream output formatting ( #6325 )" ( #6454 )
...
This reverts commit ec4e3a6d5c
.
2022-08-31 18:09:40 -05:00
WindSoilder
3ec53e544c
remove capnp protocol for plugin... ( #6421 )
...
* remove capnp protocol for plugin...
* remove relative doc
2022-08-31 17:33:30 -05:00
JT
c52d45cb97
Move from source
to source-env
( #6277 )
...
* start working on source-env
* WIP
* Get most tests working, still one to go
* Fix file-relative paths; Report parser error
* Fix merge conflicts; Restore source as deprecated
* Tests: Use source-env; Remove redundant tests
* Fmt
* Respect hidden env vars
* Fix file-relative eval for source-env
* Add file-relative eval to "overlay use"
* Use FILE_PWD only in source-env and "overlay use"
* Ignore new tests for now
This will be another issue
* Throw an error if setting FILE_PWD manually
* Fix source-related test failures
* Fix nu-check to respect FILE_PWD
* Fix corrupted spans in source-env shell errors
* Fix up some references to old source
* Remove deprecation message
* Re-introduce deleted tests
Co-authored-by: kubouch <kubouch@gmail.com>
2022-09-01 08:32:56 +12:00
Reilly Wood
11531b7630
Upgrade which
dependency to fix case on Windows ( #6453 )
2022-08-31 09:50:18 -07:00
Darren Schroeder
2591bd8c63
add more color highlighting to help ( #6449 )
2022-08-31 20:15:03 +12:00
Reilly Wood
9c58f2a522
Disable clickable links in SSH sessions ( #6439 )
...
* Disable clickable links in WSL and SSH sessions
* Revert WSL change; disable links in SSH only
2022-08-29 07:52:55 -07:00
JT
3cb9147f22
Make $
on variable names optional ( #6434 )
...
* DRAFT: make var dollar optional
* couple fixes
* fix some tests + cleanup
2022-08-29 14:35:55 +12:00
Scott Boggs
f1d72e2670
better error handling for nu_command::env::conig::utils::get_editor ( #6430 )
2022-08-28 12:56:55 +03:00
WindSoilder
f1e7a01b2e
shows wrong item when each command runs to failed. ( #6437 )
...
* add --wrong-item for each command
* fix test
* show multiple errors at once
2022-08-28 11:40:14 +03:00
WindSoilder
b88ace4cde
keep raw for variable inputed argument ( #6426 )
...
* keep raw for variable inputed argument
* fix clippy for windows
* make test runs on windows
2022-08-27 08:22:02 -05:00
Jakub Žádník
34d7c17e78
Bring module's environment when activating overlay ( #6425 )
2022-08-27 01:32:19 +03:00
Darren Schroeder
3f1824111d
add the ast command to peek at the internals of nushell ( #6423 )
...
* add the ast command to peak at the internals of nushell
* fixed a bug in an example
2022-08-26 14:48:48 -05:00
WindSoilder
fbae137442
Try to make argument with quotes for external command better ( #6420 )
...
* fix arg quote for external
* adjust comment
2022-08-26 06:50:41 -05:00
nibon7
9850424251
Make run_external parameter required ( #6418 )
2022-08-26 06:31:33 -05:00
Herlon Aguiar
918ec9daa8
nu-command/filters: drop column check positive value ( #6412 )
2022-08-25 19:03:18 +03:00
nibon7
7b07e976b8
Fix the span of "invalid time zone" ( #6411 )
...
Signed-off-by: nibon7 <nibon7@163.com>
Signed-off-by: nibon7 <nibon7@163.com>
2022-08-25 13:21:54 +02:00
Darren Schroeder
5ebfa10495
convert string duration to named duration ( #6406 )
2022-08-24 14:45:51 -05:00
Reilly Wood
3f93dc2f1d
Always report errors in cp
( #6404 )
2022-08-24 10:39:28 -07:00
Stefan Holderbach
ab77bf3289
Fix search terms for str distance
( #6398 )
...
Redundancy with the command name is unnecessary and now tested since #6380
Fixes CI failure
2022-08-24 11:49:03 +02:00
Stefan Holderbach
0afe1e4e67
Test command names and search terms for redundancy ( #6380 )
...
* Test commands for proper names and search terms
Assert that the `Command.name()` is equal to `Signature.name`
Check that search terms are not just substrings of the command name as
they would not help finding the command.
* Clean up search terms
Remove redundant terms that just replicate the command name.
Try to eliminate substring between search terms, clean up where
necessary.
2022-08-24 11:16:47 +02:00
Reilly Wood
ef26d539a7
Make cp
errors more specific ( #6396 )
2022-08-23 21:32:41 -07:00
Darren Schroeder
ba6abd77c9
add another split words example ( #6394 )
2022-08-23 13:27:06 -05:00
Darren Schroeder
6fbc76bc0f
add edit distance/levenshtein command ( #6383 )
...
* add edit distance/levenshtein command
* change output to a record
* update test
2022-08-23 08:53:14 -05:00
pwygab
884382bac4
preserve space by letting to nuon
only add quotes when necessary ( #6379 )
...
* preserve space by letting `to nuon` only add quotes when necessary
* fix CI, add quotes with colon
* fmt
* add more chars to blacklist
2022-08-23 06:51:07 -05:00
WindSoilder
9c4bbe3c63
Rename overlay commands ( #6375 )
...
* rename from overlay add to overlay use
* rename from overlay remove to overlay hide
* rename add to use_
2022-08-21 17:27:56 +03:00
Reilly Wood
c5ca839294
Add pause and cls to cmd.exe exceptions ( #6371 )
2022-08-21 07:21:27 -07:00
Darren Schroeder
5337a6dffa
add MessagePack as a plugin protocol ( #6370 )
2022-08-21 06:13:38 -05:00
pwygab
56ce10347e
let to nuon
convert column names with spaces ( #6376 )
...
* let `to nuon` convert column names with spaces
* change test
2022-08-21 13:12:13 +03:00
Darren Schroeder
37bc90c62a
fix the way lists are rendered in markdown ( #6369 )
2022-08-20 21:04:30 -05:00
Darren Schroeder
99c42582fe
add a split words command ( #6363 )
...
* add a split words command
* changed regex
2022-08-20 05:55:54 +12:00
Jakub Žádník
5a56d47f25
Add export-env
command ( #6355 )
...
* WIP Start export-env
* Add missing file
* Do not modify the parser
Let's leave that for later
* Enable tests for export-env; Fmt
2022-08-18 23:24:39 +03:00
nibon7
529c98085a
Return error when kill
didn't terminate successfully ( #6354 )
...
* Return error when `kill` didn't terminate successfully
Signed-off-by: nibon7 <nibon7@163.com>
* add test
Signed-off-by: nibon7 <nibon7@163.com>
Signed-off-by: nibon7 <nibon7@163.com>
2022-08-18 11:58:51 -05:00
Yura Shatunov
2b955f82b7
Fix #6330 ( #6332 )
2022-08-18 10:53:46 -05:00
Darren Schroeder
1843fdc060
create clickable links in ls output if configured ( #6333 )
...
* create clickable links in ls output if configured
* move some comments
2022-08-18 05:45:49 -05:00
panicbit
ec4e3a6d5c
Add support for optional list stream output formatting ( #6325 )
...
* add support for optional list stream output formatting
* cargo fmt
* table: add ValueFormatter test
2022-08-18 05:44:53 -05:00
WindSoilder
1d18f6947e
Try again: in unix like system, set foreground process while running external command ( #6273 )
...
* Revert "Fix intermittent test crash (#6268 )"
This reverts commit 555d9ee763
.
* make a working version again
* try second impl
* add
* fmt
* check stdin is atty before acquire stdin
* add libc
* clean comment
* fix typo
2022-08-18 05:41:01 -05:00
Justin Ma
4bbdb73668
Bump dev version ( #6350 )
2022-08-18 21:14:17 +12:00
Antoine Stevan
62d3497bbb
fix links to the "think in nu" page in --help ( #6348 )
...
This commit uses `sed` on all the files of the code base to
replace each and every instance of https://www.nushell.sh/book/thinking_in_nushell.html ,
which is a broken link, to https://www.nushell.sh/book/thinking_in_nu.html ,
which is the new URL to the book page.
This exact command was
```nushell
ls **/* -f |
where type == file |
each {
|it|
sed -i 's|https://www.nushell.sh/book/thinking_in_nushell.html |https://www.nushell.sh/book/thinking_in_nu.html |' $it.name
}
```
Co-authored-by: amtoine <44101798+AntoineStevan@users.noreply.github.com>
2022-08-17 13:51:07 -04:00
JT
33674d3a98
bump to 0.67 ( #6336 )
2022-08-17 05:47:47 +12:00
Stefan Holderbach
cc263ee15d
Update to reedline 0.10.0 ( #6327 )
...
Release notes:
https://github.com/nushell/reedline/releases/tag/v0.10.0
2022-08-15 13:00:00 +02:00
WindSoilder
21770367e2
make date format
supports locale ( #6306 )
...
* add --locale flag to make output support locale
* implement again based on nu-utils get_system_locale_string
* add comment
2022-08-14 08:07:04 -05:00
Richard Braakman
6145f734b7
Add repository info to all workspace crates ( #6320 )
...
This helps people who find these crates on crates.io
2022-08-14 07:21:20 -05:00
Fernando Herrera
9d8d305e9d
lazy dataframe reader ( #6321 )
...
* lazy dataframe reader
* correct space for polars dependencies
2022-08-14 13:06:31 +01:00
Andrés N. Robalino
eb55fd2383
cmd(df/first): returns the first row by default. ( #6312 )
2022-08-13 14:08:00 -05:00
Reilly Wood
613d2fb8df
Bump chrono dependency to fix panic ( #6317 )
2022-08-13 11:21:28 -07:00
Jakub Žádník
8783742060
Add 'as' keyword to 'overlay add' ( #6314 )
2022-08-13 17:28:18 +03:00
Jakub Žádník
20528e96c7
Add hide-env
to hide environment variables ( #6313 )
...
* Add hide-env to hide env vars; Cleanup tests
Also, there were some old unalias tests that I converted to hide.
* Add missing file
* Re-enable hide for env vars
* Fix test
* Rename did you mean error back
It was causing random tests to break
2022-08-13 12:55:06 +03:00
Reilly Wood
3b6c4c1bb5
run_external: only suggest alternative commands when file not found ( #6311 )
2022-08-13 00:27:50 -04:00