Matheus
5bc7a1f435
#3385 : Add unique option for uniq command ( #3754 )
...
* Added -u arg for command uniq.
* Update uniq.rs
Co-authored-by: JT <jonathandturner@users.noreply.github.com>
2021-07-10 07:27:35 +12:00
Eli Flanagan
11cb5ed10e
port strings size engine-p ( #3690 ) ( #3753 )
...
migrate `size` command to engine-p.
I also tweaked the signature of the primary logic (`size`) to mimic `keep`.
Part of #3390 .
2021-07-10 06:45:19 +12:00
JT
9916f35b22
cleanup
2021-07-09 18:23:20 +12:00
JT
0a6f62bc0e
proper list/table guards
2021-07-09 09:45:56 +12:00
JT
bc974a3e7d
cleanup
2021-07-09 09:31:08 +12:00
JT
1aa70c50aa
refactor positional arg parse
2021-07-09 09:16:25 +12:00
JT
134b45dc03
refactor long/short flags
2021-07-09 08:29:00 +12:00
mukund
2b80f40164
Remove outdated note in README.md. ( #3751 )
2021-07-09 06:04:02 +12:00
Darren Schroeder
70215fe480
a few things that make it easier to debug keybindings ( #3752 )
2021-07-08 08:56:54 -05:00
JT
96c0b933d9
Add parameterized list parsing
2021-07-08 19:49:17 +12:00
JT
7b51c5c49f
Add alias and external
2021-07-08 19:20:01 +12:00
JT
eac02b55f6
some cleanup
2021-07-08 18:57:24 +12:00
JT
5d4ae4a2a4
drive let from internal call
2021-07-08 18:19:38 +12:00
JT
04cbef3aa8
Improve keyword detecting for call parsing
2021-07-08 17:30:36 +12:00
JT
e540f0ad26
start adding row expr parsing
2021-07-08 10:55:46 +12:00
JT
69fa040361
Fix nothing string comparison ( #3750 )
2021-07-08 07:21:02 +12:00
Darren Schroeder
720217a5e4
Update stale.yml
...
update to move it to a cron schedule
2021-07-07 14:09:31 -05:00
Darren Schroeder
1911aad57f
add a couple more features ( #3749 )
2021-07-07 12:03:59 -05:00
Bruce Mitchener
1943071d12
Simplify is_executable
in nu-completion
. ( #3742 )
...
On Windows, we used the `is-exeuctable` crate but on Unix, we
duplicated the check that it did, with one difference: We also
looked at whether or not it was a symlink.
The `is-executable` crate uses `std::fs::metadata` which follows
symlinks, so this scenario should never occur here, as it will
return the metadata for the target file.
Using the `is-executable` crate on both Unix and Windows lets us
make it non-optional. This lets us remove the `executable-support`
feature. (It is worth noting that this code didn't compile on
Windows when the `executable-support` feature was not specified.)
Right now, there is an alternate code path for `target_arch` being
`wasm32`. This isn't exactly correct as it should probably handle
something different for when the `target_os` is `wasi`.
2021-07-07 07:53:07 -05:00
Darren Schroeder
08c624576c
try to use regular trim commands as much as possible ( #3743 )
2021-07-07 07:51:52 -05:00
Bruce Mitchener
a99a2ce7e8
Update wasm sample gitignore for node_modules. ( #3747 )
...
When building the wasm sample in the way that it is built in CI,
a `node_modules` directory is populated.
2021-07-07 07:48:32 -05:00
Jakub Žádník
56855f9791
Downgrade crossterm to fix pager compilation ( #3740 )
...
* Downgrade crossterm to fix pager compilation
With 0.20.0, the `table-pager` feature wouldn't compile.
Closes #3738
* Update Cargo.lock
2021-07-07 15:24:42 +12:00
Darren Schroeder
b32979bc84
^ls doesn't exist on windows ( #3745 )
2021-07-06 13:14:48 -05:00
Bruce Mitchener
651d425046
Remove ptree dep from nu-command, remove associated feature. ( #3741 )
...
Nothing used the `ptree` feature or optional dependency within
`nu-command` except to include it within the `version` output. This
may be related to when `nu-cli` also had a `ptree` feature, but
I'm not sure.
That leaves the code within `nu_plugin_tree` as the sole remaining
user of `ptree`, which is already covered by the feature `tree`
and included in the `version` output.
2021-07-06 10:33:24 -05:00
Bruce Mitchener
d1df9b9e38
Update minus, tui to remove crossterm 0.18 dep. ( #3739 )
...
We already depend on crossterm 0.19 (and 0.20), so we can at least
remove the usage of 0.18 by updating minus and tui.
2021-07-06 20:44:07 +12:00
JT
bf1a23afcf
Add table parsing
2021-07-06 13:48:45 +12:00
JT
04a6a4f860
Add list parsing
2021-07-06 10:58:56 +12:00
Bruce Mitchener
f603b7ef8b
Remove empty trace
feature. ( #3732 )
...
In `nu-parser`, this was a relic of when nom was used by the parser
and it would enable using `nom-tracable`.
2021-07-06 07:21:28 +12:00
Daniel Egger
b8c3a10e5b
Bump a few source compatible nu-command dependencies ( #3724 )
...
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
2021-07-05 19:16:34 +12:00
Daniel Egger
cab181832f
Bump rand version used by nu-command to 0.8 ( #3723 )
...
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
2021-07-05 16:12:44 +12:00
Fernando Herrera
af2b2c668d
New take command ( #3722 )
...
* Type in command description
* filter name change
* Clean column name
* Clippy error and updated polars version
* Lint correction in file
* CSV Infer schema optional
* Correct float operations
* changes in series castings to allow other types
* Clippy error correction
* Removed lists from command signatures
* Added not command for series
* take command with args
* set with idx command
2021-07-05 11:46:53 +12:00
JT
c94c87eec0
Wasm fix ( #3729 )
...
* Try to fix azure pipelines
* Try to fix azure pipelines
* Try to fix azure pipelines
2021-07-04 20:11:22 +12:00
JT
666bee61f7
Merge pull request #3 from jonathandturner/revert-2-revert-1-checkpiont
...
Revert "Revert "Removed file_id in Span, compact file sources""
2021-07-03 15:40:02 +12:00
JT
a6e0f0bb74
Revert "Revert "Removed file_id in Span, compact file sources""
2021-07-03 15:35:15 +12:00
JT
03ce896f6f
Merge pull request #2 from jonathandturner/revert-1-checkpiont
...
Revert "Removed file_id in Span, compact file sources"
2021-07-03 15:34:17 +12:00
JT
80e0cd4e00
Revert "Removed file_id in Span, compact file sources"
2021-07-03 15:11:24 +12:00
JT
049477a9bd
Merge pull request #1 from jonathandturner/checkpiont
...
Removed file_id in Span, compact file sources
2021-07-03 13:39:14 +12:00
JT
d644a8d41f
trimming structs
2021-07-03 13:37:27 +12:00
JT
e0c2074ed5
trimming structs
2021-07-03 13:29:56 +12:00
JT
d8bf48e692
minor change
2021-07-03 07:30:03 +12:00
JT
a91efc3cbd
blocks
2021-07-02 19:32:30 +12:00
JT
fb42c94b79
parens
2021-07-02 19:15:30 +12:00
JT
ba2e3d94eb
math
2021-07-02 18:44:37 +12:00
JT
4ef65f0983
Add some tests
2021-07-02 14:22:54 +12:00
JT
2675ad9304
Add some tests
2021-07-02 13:42:25 +12:00
JT
c1240f214c
Remove warnings. Improve unknown flags
2021-07-02 10:54:04 +12:00
JT
7f3eab418f
Add call parsing
2021-07-02 10:40:08 +12:00
TechWatching
4e13c339ec
Submit package to winget during release. ( #3717 )
...
Add a new job winget in release.yaml that uses wingetcreate to submit package.
2021-07-01 16:24:38 -05:00
Darren Schroeder
9a1e1d5b1e
move lang
command to $nu
( #3720 )
2021-07-01 13:09:50 -05:00
JT
4f89ed5d66
little bits of progress
2021-07-01 18:09:55 +12:00