Darren Schroeder
3b357e5402
fix parse_failure_due_conflicted_flags test ( #5926 )
2022-07-01 21:59:51 -05:00
WindSoilder
79da470239
simplify error make ( #5883 )
2022-07-01 21:06:36 -05:00
Kangaxx-0
37949e70e0
Add all flag to nu-check command ( #5911 )
...
* Add all flag
* Make all and moduel flags as mutually exclusive
* Fix new test
* format code...
* tweak words
* another tweak
Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
2022-07-01 15:49:24 -05:00
nibon7
5d00ecef56
Return error when external command core dumped ( #5908 )
...
* Return error when external command core dumped
Fixes #5903
Signed-off-by: nibon7 <nibon7@163.com>
* Use signal-hook to get signal name
Signed-off-by: nibon7 <nibon7@163.com>
* Fix comment
Signed-off-by: nibon7 <nibon7@163.com>
2022-07-01 08:58:21 -05:00
WindSoilder
6dde231dde
make module imports in scripts used for relative path. ( #5913 )
...
* always load env
* add interactive argument for read_config_file
2022-07-01 06:35:09 -05:00
Michael Angerman
58fa2e51a2
update crate thiserror to version 1.0.31 in crates nu-cli, nu-command, nu-parser, nu-protocol ( #5919 )
2022-06-30 13:55:01 -07:00
pwygab
cf0877bf72
ensure required
positionals don't show up as optional
when help
( #5916 )
...
* ensure `required` positionals show up as `required` when `help`
* moves it to the older format
* standardises across optional and required parameters
2022-07-01 05:51:41 +12:00
pwygab
a0db4ce747
Better error handling using do
( #5890 )
...
* adds `capture-errors` flag for `do`
* adds `get-type` core command to get type
* fmt
* add tests in example
* fmt
* fix tests
* manually revert previous changes related to `get-type`
* adds method to check for error name using `into string`
* fix clippy
2022-06-29 20:01:34 -05:00
Yethal
6ee13126f7
Update Dockerfile ( #5910 )
...
Container now uses unpriviledged user with UID 1000 by default
Container now uses Alpine as base
Final image size dropped to just 67MB
2022-06-29 18:36:24 -05:00
Benoît Cortier
1c15a4ed3a
docs: clarify print
and echo
commands ( #5909 )
...
I thought this comment was relevant:
https://github.com/nushell/nushell/issues/5724#issuecomment-1148164153
2022-06-29 18:43:46 -04:00
Darren Schroeder
7aabc381a3
fix bug where thin
theme wasn't getting applied correctly ( #5905 )
2022-06-28 14:14:20 -05:00
Darren Schroeder
8c9dced71b
fix excessive ansi escape sequences ( #5901 )
2022-06-27 18:51:14 -05:00
Reilly Wood
06d5a31301
Make sort logic available outside sort-by ( #5893 )
2022-06-27 13:36:59 -04:00
Fernando Herrera
ffbc0b0180
Header filtering out of for loop ( #5896 )
...
* remove extra print
* dataframe with real index
* corrected dataframe tests
* clippy error
* clippy error
* moved header filter out of loop
2022-06-27 06:33:45 -05:00
Fernando Herrera
c0901ef707
Dataframe with real index ( #5892 )
...
* remove extra print
* dataframe with real index
* corrected dataframe tests
* clippy error
* clippy error
2022-06-26 17:32:18 -05:00
Fernando Herrera
d3e84daa49
remove extra print ( #5891 )
2022-06-26 11:48:30 -05:00
Benoît Cortier
228ede18cf
build: update miette
dependency ( #5889 )
2022-06-26 07:03:38 -05:00
WindSoilder
c5a69271a2
make path exists work on expanded path ( #5886 )
...
* make path exists works with home
* fix test name
2022-06-26 06:55:55 -05:00
Kangaxx-0
dc9d939c83
Introduce new command - nu check ( #5864 )
...
* nu check command - 1
* Support stream
* Polish code and fix corner case
2022-06-26 06:53:06 -05:00
Benoît Cortier
32f0f94b46
feat: add --binary(-b)
option to hash
commands ( #5885 )
...
For instance,
```
echo 'abcdefghijklmnopqrstuvwxyz' | hash sha256 --binary
```
Will returns the hash as a binary value instead of a hexadecimaly encoded string.
2022-06-26 06:50:56 -05:00
Darren Schroeder
a142d1a192
update encode decode with new signature ( #5881 )
2022-06-25 19:06:39 -05:00
Benoît Cortier
173d60d59d
Deprecate hash base64
, extend decode
and add encode
commands ( #5863 )
...
* feat: deprecate `hash base64` command
* feat: extend `decode` and `encode` command families
This commit
- Adds `encode` command family
- Backports `hash base64` features to `encode base64` and `decode base64` subcommands.
- Refactors code a bit and extends tests for encodings
- `decode base64` returns a binary `Value` (that may be decoded into a string using `decode` command)
* feat: add `--binary(-b)` flag to `decode base64`
Default output type is now string, but binary can be requested using this new flag.
2022-06-26 00:35:23 +03:00
JT
f2989bf704
Move input/output type from Command to Signature ( #5880 )
2022-06-26 09:23:56 +12:00
JT
575ddbd4ef
Clippy and remove unused is_binary ( #5879 )
2022-06-26 08:20:28 +12:00
Darren Schroeder
ef9b72d360
add ability to convert timestamp_millis() ( #5876 )
...
* add ability to convert timestamp_millis()
* add example test
* add nanos too
2022-06-25 09:51:41 -05:00
Justin Ma
25349a1eac
Add an example for default
command to get an env var with fallback ( #5874 )
...
* Add an example for `default` command to get an env var with fallback
* update test
* update test
2022-06-25 17:27:54 +08:00
Justin Ma
99e4c44862
Fix less.exe downloading for windows release pkgs, close #5868 ( #5873 )
...
* Fix less.exe downloading for windows release pkgs
* Fix less.exe downloading for windows release pkgs
2022-06-25 09:09:48 +08:00
pwygab
1345f97202
Errors when let in
, let env
and similar commands are passed. ( #5866 )
...
* throw `let nu/env/nothing/in` error in parsing
* add tests and fmt
* fix clippy
* suggestions
* fmt
* `lvalue.span` instead of `spans[1]`
* clippy
* fmt
2022-06-25 00:55:25 +03:00
WindSoilder
f02076daa8
fix plugin path with whitespace ( #5871 )
2022-06-24 12:44:22 -05:00
JT
533e04a60a
Bump to 0.64.1 dev version ( #5865 )
2022-06-24 16:47:00 +12:00
pwygab
13c152b00f
finish git fetch custom completions ( #5859 )
2022-06-23 05:19:11 -05:00
Fernando Herrera
f231a6df4a
Remove quotes from external args ( #5846 )
...
* remove quotes from external args
* remove internal quotes
* correct escaped quotes in string
2022-06-22 22:01:44 -05:00
Fernando Herrera
3c0bccb900
Exclude ./... from expansion ( #5839 )
...
* exclude ./... from expansion
* use all instead of any
* no path expansion for external arguments
* clippy error
* expand only tilde
2022-06-22 22:00:30 -05:00
pwygab
f43a65d7a7
Prevents duplicate fields in transpose -r
( #5840 )
2022-06-22 19:19:06 -05:00
Darren Schroeder
0827ed143d
cleanup $config
as a built-in ( #5852 )
2022-06-22 13:13:03 -05:00
Kangaxx-0
4b84825dbf
Remove externa nu from nu config ( #5847 )
2022-06-22 09:42:18 +03:00
WindSoilder
82ae06865c
Port command ( #5849 )
...
* implement port command
* better comment
* fmt code
* fix example description
* fix usage
* fix tests
2022-06-21 23:27:58 -04:00
Darren Schroeder
128ce6f9b7
update reedline config based on recent reedline changes ( #5845 )
2022-06-21 12:22:11 -05:00
Fernando Herrera
44cbd88b55
allow comparison for similar types ( #5844 )
2022-06-21 12:15:31 -05:00
Fernando Herrera
7164929c61
Db commands without DB ( #5838 )
...
* database commands without db
* database command tests
2022-06-21 12:14:29 -05:00
Justin Ma
848ff8453b
feat: Update dockerfile for latest nu release ( #5843 )
2022-06-21 18:28:31 +08:00
Kamil
f94ca6cfde
root/admin prompt is red now ( #5836 )
...
I really miss bash's visual way of signalising root, i.e. blue: user, red: root
So I brought it to nushell (since you've added `is-admin` the code is fully portable and easily-readable) and hope you'll like it
2022-06-20 15:23:55 -05:00
WindSoilder
fab3f8fd40
fix exit code ( #5835 )
...
* fix exit code
* fix usage
* add comment
2022-06-20 09:05:11 -05:00
pwygab
dbcfcdae89
calculates history duration properly ( #5827 )
2022-06-19 00:44:46 -04:00
Kangaxx-0
08aa248c42
Add more tests for completion ( #5826 )
...
* Add more tests for completion
* Fix windows
* Cleanup
2022-06-18 19:42:00 -05:00
Darren Schroeder
9f07bcc66f
first stab at minimizing ansi escapes ( #5822 )
2022-06-17 22:07:46 -05:00
Reilly Wood
2caa44cea8
Fix parser panic ( #5820 )
2022-06-17 11:11:48 -07:00
pwygab
28c21121cf
fixes to nuon
for inf, -inf, and NaN ( #5818 )
2022-06-17 21:01:37 +03:00
Darren Schroeder
a17d46f200
add more columns to the history command when using sqlite history ( #5817 )
2022-06-17 09:35:34 -05:00
Fernando Herrera
6cc8402127
Standardise to commands ( #5800 )
...
* standarize to commands
* move from to to into
2022-06-17 07:51:50 -05:00