Reilly Wood
11531b7630
Upgrade which
dependency to fix case on Windows ( #6453 )
2022-08-31 09:50:18 -07:00
dependabot[bot]
a098a27837
Bump iana-time-zone from 0.1.44 to 0.1.47 ( #6448 )
...
Bumps [iana-time-zone](https://github.com/strawlab/iana-time-zone ) from 0.1.44 to 0.1.47.
- [Release notes](https://github.com/strawlab/iana-time-zone/releases )
- [Changelog](https://github.com/strawlab/iana-time-zone/blob/main/CHANGELOG.md )
- [Commits](https://github.com/strawlab/iana-time-zone/compare/0.1.44...v0.1.47 )
---
updated-dependencies:
- dependency-name: iana-time-zone
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-31 06:19:20 -05:00
Darren Schroeder
2591bd8c63
add more color highlighting to help ( #6449 )
2022-08-31 20:15:03 +12:00
JT
a03fb946d9
Allow parens around signatures ( #6444 )
...
* DRAFT: make var dollar optional
* couple fixes
* fix some tests + cleanup
* allow parens around signature
* clippy
2022-08-30 16:17:10 +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
7b502a4c7f
register-plugin.nu: refactor register plugin ( #6409 )
2022-08-25 06:57:48 -05: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
pwygab
e45b169cba
default to file completion after first command, add command
option for completions ( #6257 )
...
* remove unnecessary FlatShape
* add test
2022-08-24 22:46:00 +03: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
nibon7
a43514deb2
register-plugin.nu: remove .exe
extension match to simplify code ( #6400 )
...
Signed-off-by: nibon7 <nibon7@163.com>
Signed-off-by: nibon7 <nibon7@163.com>
2022-08-24 06:43:21 -05: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
fce8581321
add a plugin registration script ( #6395 )
2022-08-23 19:38:02 -05:00
Darren Schroeder
ba6abd77c9
add another split words example ( #6394 )
2022-08-23 13:27:06 -05:00
WindSoilder
a7295c8f1b
Plugin: Add benchmark for different encoding protocol ( #6384 )
...
* add MessagePack as a plugin protocol
* tmp merge from remote
* add benchmark
* use less benchmark group, and add README for analysing benchmark result
* update README
* update README
* rewrite
* remove comment
* rename
* fmt
Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
2022-08-23 11:49:51 -05:00
Stefan Holderbach
2a310ef187
[Experiment] Reenable CI build cache for tests ( #6390 )
...
Let's see, if we can use `cargo-cache` again for the tests after #6389
reduced the number of test binaries to build that are quite large due as
they statically link copies of the same engine.
This might be one of the reasons why the tests on windows exceeded the
allotted disk space.
2022-08-23 17:17:33 +02:00
Herlon Aguiar
530e250573
nu-cli: merge completions tests into one file ( #6389 )
...
This PR merges all the completions tests into one file.
The reason for them to be separated was organization, so we wouldn't need to scroll a huge file.
But that came with another issue, because rust generates a new binary for each completion test file and each completion test depends on Nu looks like all the dataframes were coming into each test file as well (as pointed by @rgwood
2022-08-23 16:24:24 +02: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
Jakub Žádník
d97975e9fa
Allow "export-env" parsing in modules ( #6382 )
...
* Allow "export-env" parsing in modules
* Fmt
* Add test for importing module's environment
2022-08-23 10:45:17 +03:00
nibon7
839b264261
Add test cases for $nu.config-path change ( #6385 )
...
* Add test cases for $nu.config-path change
Part of #6366
Signed-off-by: nibon7 <nibon7@163.com>
* do not start a new process to test default config path
Signed-off-by: nibon7 <nibon7@163.com>
Signed-off-by: nibon7 <nibon7@163.com>
2022-08-23 10:18:14 +03:00
Jakub Žádník
7ef4e5f940
Allow parsing modules as scripts ( #6357 )
...
* Allow parsing modules as scripts
* Remove 'export env' from the supported keywords
* Add test for export in blocks; Allow "export use"
* Allow evaluating "export alias"
* Fmt; Clippy
* Allow running "export extern" in scripts
2022-08-23 00:19:47 +03:00
Herlon Aguiar
646aace05b
feat: external completions for commands/flags ( #6295 )
...
* wip
* wip
* cleanup
* error message
* cleanup
* cleanup
* fix clippy
* add test
* fix span
* cleanup
* cleanup
* cleanup
* fixed completion
* push char
* wip
* small fixes
* fix remove last span
* fmt
* cleanup
* fixes + more tests
* fix test
* only complete for commands
* also complete flags
* change decl_id to block_id
* use nu completion first
* fix test
* ignore test
* update config section
2022-08-22 21:38:51 +03:00
nibon7
772ad896c8
Get $nu.config-path
and $nu.env-path
from EngineState
( #6366 )
...
* Get `$nu.config-path` and `$nu.env-path` from `EngineState`
Signed-off-by: nibon7 <nibon7@163.com>
* replace tuple with hashmap
Signed-off-by: nibon7 <nibon7@163.com>
* refactor set_config_path
Signed-off-by: nibon7 <nibon7@163.com>
Signed-off-by: nibon7 <nibon7@163.com>
2022-08-22 19:30:09 +03: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
nibon7
ad7522bba0
Use string interpolation to construct log file path ( #6365 )
...
Signed-off-by: nibon7 <nibon7@163.com>
Signed-off-by: nibon7 <nibon7@163.com>
2022-08-19 20:06:45 -05:00
Justin Ma
bbcf374886
Update nu version for release workflow ( #6361 )
2022-08-20 08:05:58 +08: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
Daniel Buch Hansen
4ab468e65f
Fix slice indexing ( #6322 )
...
* Return empty suggestions if no span contents is present
* Fix slice indexing
2022-08-18 05:44:09 -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