Reilly Wood
24d72ca43c
Simplify seq char
( #7054 )
...
* Simplify `seq char`
* Fix input/output tests
2022-11-09 17:06:47 -08:00
Darren Schroeder
457f7889df
use path.try_exist() to fix silent errors ( #7069 )
2022-11-09 16:54:43 -08:00
raccmonteiro
7b0c0692dc
Type validation for headers command ( #6918 ) ( #7047 )
...
cargo clippy lints
tests
format
Co-authored-by: Ricardo Monteiro <ricardo.monteiro@getmanta.com>
2022-11-09 16:43:24 -08:00
raccmonteiro
c4cb3a77cb
command open
returns error when does not have parameters ( #7048 ) ( #7058 )
...
test
Co-authored-by: Ricardo Monteiro <ricardo.monteiro@getmanta.com>
2022-11-10 00:25:32 +01:00
Reilly Wood
aed8d3800b
Fix CI failures after PR merge conflicts ( #7072 )
2022-11-10 00:24:57 +01:00
Darren Schroeder
53a9264b67
return value::int instead of value::record in history session
( #7049 )
...
* return value::int instead of value::record
* clippy
2022-11-10 11:20:52 +13:00
Reilly Wood
e18fb13616
Make seq output type consistent ( #7045 )
2022-11-10 11:19:02 +13:00
Reilly Wood
2201bd9b09
Require column name(s) in sort-by ( #7041 )
2022-11-10 11:16:51 +13:00
Reilly Wood
da8f6c5682
Require input for date format
( #7043 )
2022-11-10 11:16:14 +13:00
Reilly Wood
14d7ba5cc9
Remove --predicate flag from find
( #7042 )
2022-11-10 11:15:17 +13:00
Reilly Wood
5ee096232c
Remove sqlparser SQLite commands ( #7040 )
2022-11-10 11:14:48 +13:00
WindSoilder
c259ef41bd
update polar to 0.25 ( #6988 )
2022-11-10 11:07:38 +13:00
Leon
2c238aea6a
Fixed $in in where
blocks ( #6976 )
2022-11-10 11:05:15 +13:00
nibon7
c600c1ebe7
Fix ignore-errors for select ( #6896 )
...
* Fix ignore-errors for select
* fix Value::List match
* fix invalid rows
* add tests
* fix ListStream match
* add one more test for ListStream
* add more tests
* tweak words
2022-11-10 10:57:44 +13:00
Dan Davison
df94052180
Declare input and output types of commands ( #6796 )
...
* Add failing test that list of ints and floats is List<Number>
* Start defining subtype relation
* Make it possible to declare input and output types for commands
- Enforce them in tests
* Declare input and output types of commands
* Add formatted signatures to `help commands` table
* Revert SyntaxShape::Table -> Type::Table change
* Revert unnecessary derive(Hash) on SyntaxShape
Co-authored-by: JT <547158+jntrnr@users.noreply.github.com>
2022-11-10 10:55:05 +13:00
JT
f878276de7
Turn off foreground processes on macOS ( #7068 )
...
* Turn off foreground processes on macOS
* fmt
2022-11-10 07:39:09 +13:00
Leon
cd89304706
Add help
warnings for path exists
and path type
regarding usage ( #7062 )
...
* Add help warnings to `path exists` and `path type`
* Correction
2022-11-09 13:41:55 +01:00
Darren Schroeder
2b9f258126
bump to dev release 0.71.1 ( #7064 )
2022-11-09 13:18:34 +01:00
WindSoilder
85587c0c2a
make take
behave like first
( #6893 )
...
* fix take_1 behavior
* fix test case
* simplify code
* reverse back for first command
* fix example
* make arg required
* add test
* fix test message
2022-11-09 11:32:16 +01:00
JT
6cc4ef6c70
bump to 0.71, use 1.63 toolchain ( #7061 )
2022-11-09 06:54:00 +13:00
JT
517173bb8c
Update rust-toolchain.toml
2022-11-09 06:06:33 +13:00
JT
e415be6c0e
Revert back to 1.63 because of macOS build issues
2022-11-09 06:05:53 +13:00
Jakub Žádník
59332562bb
Update contributing guide and PR template ( #7008 )
...
* Update contributing guide
* Refactor pull request template
* Reword PR template a bit
* Update CONTRIBUTING.md
Co-authored-by: Reilly Wood <26268125+rgwood@users.noreply.github.com>
* Reformulate
* Make "Before Submitting" a top-level header
* Add review requirement to After Submitting
* Reformulate
* Update .github/pull_request_template.md
Co-authored-by: Dan Davison <dandavison7@gmail.com>
* Reformulate contributing guide
Co-authored-by: Reilly Wood <26268125+rgwood@users.noreply.github.com>
Co-authored-by: Dan Davison <dandavison7@gmail.com>
2022-11-07 22:57:29 +01:00
Stefan Holderbach
3d8d7787de
Pin reedline to 0.14.0
release ( #7050 )
...
See release notes:
https://github.com/nushell/reedline/releases/tag/v0.14.0
2022-11-07 21:31:15 +01:00
Stefan Holderbach
611fe41788
Make the example names unique across workspace ( #7046 )
...
Avoids name collision in the target directory when running test
compilation.
cc @rgwood
2022-11-07 09:00:21 +01:00
Darren Schroeder
a6118eed8d
Revert "Fix for escaping backslashes in interpolated strings ( fixes #6737 ) ( #7020 )" ( #7038 )
...
This reverts commit d4798d6ee1
.
2022-11-06 16:17:00 -06:00
Gavin Foley
d4798d6ee1
Fix for escaping backslashes in interpolated strings ( fixes #6737 ) ( #7020 )
...
Co-authored-by: Gavin Foley <gavinmfoley@gmail.com>
2022-11-07 08:57:28 +13:00
Stefan Holderbach
5ea245badf
Make example binaries proper cargo examples ( #7019 )
...
Should not be built by default with `cargo build`
Instead are compiled with `cargo test` to avoid bitrot
Run with `cargo run -p ... --example ...`
2022-11-06 11:39:27 -08:00
Dan Davison
5ee7847035
Add accidentally missing tests of some command examples ( #7035 )
...
* Add missing tests of examples
* Fix broken tests due to externals not being in working set
* Comment out `where` test due to bug
2022-11-06 09:53:25 -08:00
mike
8a812cf03c
added some search-terms to the platform
category ( #7021 )
...
* added some search-terms to the `platform` category
* removed the redundant `sleep` search-term
* removed the redundant `gradients` search-term
2022-11-06 18:11:04 +01:00
Dan Davison
9a1cedfd08
Add expected result to test ( #7031 )
2022-11-06 18:09:56 +01:00
Stefan Holderbach
766d1ef374
Update reedline ( #7023 )
...
Fixes #6991
2022-11-06 09:37:36 +01:00
Per Bothner
beec658872
New "display_output" hook. ( #6915 )
...
* New "display_output" hook.
* Fix unrelated "clippy" complaint in nu-tables crate.
* Fix code-formattng and style issues in "display_output" hook
* Enhance eval_hook to return PipelineData.
This allows a hook (including display_output) to return a value.
Co-authored-by: JT <547158+jntrnr@users.noreply.github.com>
2022-11-06 13:46:40 +13:00
David Matos
b90d701f89
Rename column name from command to name for consistency ( #7007 )
2022-11-05 10:46:30 +13:00
Alex Saveau
be5d71ea47
Run a round of clippy --fix to fix a ton of lints ( #7006 )
...
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
2022-11-04 15:11:17 -05:00
Ian Manske
f1bde69131
Fix panic when encountering ENOTTY. ( #7001 )
2022-11-05 09:06:04 +13:00
Alex Saveau
36ae384fb3
Improve do command docs ( #6975 )
2022-11-05 07:50:56 +13:00
Stefan Holderbach
2c4048eb43
Refactor ansi stripping into nu-utils
functions ( #6966 )
...
Allows use of slightly optimized variants that check if they have to use
the heavier vte parser. Tries to avoid unnnecessary allocations. Initial
performance characteristics proven out in #4378 .
Also reduces boilerplate with right-ward drift.
2022-11-05 07:49:45 +13:00
Access
b9195c2668
fix: fixcd ( #6799 )
...
* fix: fixcd
try to fix
Log: try to fix the bug with can enter a permisson error fold
* change wording
* fat
* fmt
Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
2022-11-05 07:38:39 +13:00
Darren Schroeder
bb968304da
bump rust-toolchain to 1.64 ( #7005 )
...
* bump rust-toolchain to 1.64
* 1.64 clippy
2022-11-04 10:27:23 -05:00
David Matos
ca9bf19041
highlight term on PipelineData::Value() ( #6997 )
2022-11-04 08:42:16 -05:00
JT
ecfee4c542
Remove unnecessary clone in par-each ( #6995 )
...
* Remove unnecessary clone in par-each
* clippy
2022-11-04 18:07:28 +13:00
Darren Schroeder
acb34561eb
category tweak ( #6982 )
2022-11-02 12:17:17 -05:00
Leon
43aec8cdbe
Fix $in
in blocks given to any
and all
( #6951 )
...
* Fix $in in blocks given to `any` and `all` (closes #6917 )
* Fix help message typos
* Fix tests ($in doesn't work in examples?!)
* Fix formatting
2022-11-01 11:36:54 -07:00
WindSoilder
e46d610f77
Refactor: finish refactor on commands which take optional cell paths. ( #6961 )
...
* refactor on conversions module
* finish refactor on strings command
* simplify code
* rename from ArgumentsCp to CellPathOnlyArgs
* fmt code
* refactor on hash relative commands
2022-11-01 12:40:11 +01:00
Stefan Holderbach
1d95861a09
Remove inadvertent dep on original ansi_term
( #6965 )
...
Is default feature in `lscolors`. Not needed for function as we use
crossterm backend in this case.
2022-11-01 12:27:20 +13:00
Darren Schroeder
f48de73236
change str distance to output value::int ( #6963 )
...
* change str distance to output value::int
* update the test
2022-10-31 10:28:04 -05:00
Darren Schroeder
0b4daa66b0
tweak upsert help text ( #6962 )
...
* tweak upsert help text
* more tweaks
2022-10-31 08:18:11 -05:00
Stefan Holderbach
412952182f
Update reedline to latest dev ( #6953 )
...
- Reedline now properly supports the `sqlite-dynlib` feature flag
- Reorganized examples allow removal of `gethostname` as reedline
dev-dependency
2022-10-30 22:08:07 +01:00
Jens Hedegaard Nielsen
014d36b17a
Use nt-api 4 on Windows ( #6949 )
...
* Bump nushell-sytem dep to ntapi 0.4
0.3.7 trigger a warning about code being incompatible
with future rust versions. This is resolved in 0.4
https://github.com/MSxDOS/ntapi/issues/11
* Upgrade Cargo.lock for ntapi 0.4
2022-10-30 14:29:41 +01:00