Chris Gillespie
c355585112
Set active shell column to boolean ( #2540 )
2020-09-13 16:25:38 +12:00
gorogoroumaru
45f32c9541
Allow math avg
to work on durations ( #2529 )
...
* Allow `math avg` to work on durations
* formatting
* fix linting issue and implemented `math sum` for duration
* fix linting issue
* applied requested changes
* applied requested change for avg.rs
* formatting
2020-09-12 18:56:05 -05:00
Andrés N. Robalino
7528094e12
Allow folding with tables. ( #2538 )
2020-09-12 01:40:52 -05:00
Chris Gillespie
0f7a9bbd31
Further clarify duration conversion ( #2522 )
2020-09-10 15:33:37 +12:00
Darren Schroeder
a63a5adafa
remove unused dependencies ( #2520 )
...
* remove unused dependencies
* moved umask to cfg(unix)
* changed Inflector to inflector, hoping it fixes the issue.
* roll back Inflector
* removed commented out deps now that everything looks good.
2020-09-09 13:57:51 -05:00
Darren Schroeder
2eb4f8d28a
updated dependencies ( #2517 )
2020-09-09 10:35:45 +12:00
Jonathan Turner
c9ffd6afc0
Improve range parsing and handling ( #2506 )
...
* Improve range parsing and handling
* linting
2020-09-07 14:43:58 +12:00
Jonathan Turner
986b427038
Add modulo operator and simplify in/not-in ( #2505 )
2020-09-07 12:12:55 +12:00
Jonathan Turner
882cf74137
Bump to 0.19.0 ( #2483 )
2020-09-02 15:37:06 +12:00
Darren Schroeder
adbbcafd30
Add minor theme support ( #2449 )
...
* WIP - compiling but not working
* semi-working
* making progress
* working except for table lines
* fmt + clippy
* cleaned up some comments
* working line colors
* fmt, clippy, updated sample config.toml
* removed extra comments
2020-09-01 17:09:55 +12:00
Jonathan Turner
df691c6c91
Light fixes ( #2455 )
...
* Add optional commas for items in lists and tables
* A couple last fixes
2020-08-30 19:03:18 +12:00
Jonathan Turner
6f69ae8707
Add table literals ( #2453 )
...
* Add table literals
* clippy
2020-08-30 16:55:33 +12:00
Andrés N. Robalino
a64cfb6285
Command expression need not carry span information.
2020-08-24 22:48:33 -05:00
Leonhard Kipp
0dd1403a69
Sleep command ( #2381 )
...
* Add deserialization of Primitive::Duration; Fixes #2373
* Implement Sleep command
* Add comment saying you should name your rest field "rest"
* Fix typo
* Add documentation for sleep command
2020-08-22 05:51:29 +12:00
Bailey Layzer
ad395944ef
SyntaxShape checking in Alias ( #2377 )
...
* initial, working for shallow internals
* add recurion on Block
* clean up/abstract, Invocations
* use Result
* inspection of Binary, tests
* improve code structure
* move arg shape inspection to Alias command
* add spanned errors, tests, cleanup for PR
* fix test, clippy
2020-08-20 15:18:55 +12:00
Matt Clarke
c59f860b48
Renamed time units ( #2356 )
...
* Changed time units as outlined in issue #2353 .
Also applied changes to to_str for Unit - not sure if that was what was wanted.
* Forgot the tests!
* Updated primitive.rs to match changes.
* Updated where example to match changes.
* And the html test!
2020-08-16 07:03:28 +12:00
Joseph T Lyons
c6588c661a
Add column flag to count command
2020-08-15 07:52:59 -05:00
Jonathan Turner
da4d24d082
Bump to 0.18.2. Move starship external. ( #2345 )
...
* Bump to 0.18.2. Move starship external.
* Fix failing test
2020-08-14 07:02:45 +12:00
Jonathan Turner
87d71604ad
Bump to 0.18.1 ( #2335 )
2020-08-12 15:59:28 +12:00
Jonathan Turner
2ad07912d9
Bump to 0.18 ( #2325 )
2020-08-11 18:44:53 +12:00
Jonathan Turner
50343f2d6a
Add stderr back when using do -i
( #2309 )
...
* Add stderr back when using do -i
* Add stderr back when using do -i
2020-08-07 16:53:37 +12:00
Andrés N. Robalino
028fc9b9cd
Data summarize reporting overhaul. ( #2299 )
...
Refactored out most of internal work for summarizing data opening
the door for generating charts from it. A model is introduced
to hold information needed for a summary, Histogram command is
an example of a partial usage. This is the beginning.
Removed implicit arithmetic traits on Value and Primitive to avoid
mixed types panics. The std operations traits can't fail and we
can't guarantee that. We can handle gracefully now since compute_values
was introduced after the parser changes four months ago. The handling
logic should be taken care of either explicitly or in compute_values.
The zero identity trait was also removed (and implementing this forced
us to also implement Add, Mult, etc)
Also: the `math` operations now remove in the output if a given column is not computable:
```
> ls | math sum
──────┬──────────
size │ 150.9 KB
──────┴──────────
```
2020-08-03 17:47:19 -05:00
Joseph T. Lyons
eeb9b4edcb
Match cleanup ( #2294 )
...
* Delete unnecessary match
* Use `unwrap_or_else()`
* Whitespace was trim on file save
* Use `map_or_else()`
* Use a default to group all match arms with same output
* Clippy made me do it
2020-08-04 05:43:27 +12:00
Joseph T. Lyons
c48ea46c4f
Match cleanup ( #2290 )
2020-08-02 18:34:33 -04:00
Jonathan Turner
ba81278ffd
Remove build.rs and nu-build ( #2282 )
2020-08-01 09:21:10 +12:00
Shaurya Shubham
878b748a41
Add list output for to html
( #2273 )
2020-07-30 16:54:55 +12:00
Joseph T. Lyons
de18b9ca2c
Match cleanup ( #2248 )
2020-07-25 08:40:35 -04:00
Jonathan Turner
2a084fc838
Bump to 0.17.0 ( #2237 )
2020-07-22 06:41:49 +12:00
Joseph T. Lyons
6eb2c94209
Add flag for case-insensitive sort-by ( #2225 )
...
* Add flag for case-insensitive sort-by
* Fix test names
* Fix documentation comments
2020-07-21 05:31:58 +12:00
k-brk
3432078e77
Fix uniq to work with simple values ( #2214 )
2020-07-19 05:19:03 +12:00
Joseph T. Lyons
f26151e36d
Silence Rust 1.45 Clippy warnings ( #2196 )
...
* Silence Rust 1.45 Clippy warnings dealing with using `map_err()`
* Silence false Clippy warning
* Fix last Clippy error for unnecessary conversion
* Fix `and_then` clippy warnings
2020-07-18 05:57:15 +12:00
Joseph T. Lyons
0934410b38
Use matches!()
for true/false returning match statements ( #2176 )
2020-07-14 20:11:41 -04:00
Darren Schroeder
8d03cf5b02
added more verbose message to assert ( #2157 )
...
* added more verbose message to assert
having a -h short is bad for any command since it's already used by --help.
* updated for fmt
2020-07-11 16:49:44 -05:00
Jonathan Turner
0bc2e29f99
Rename 'bytes' to 'filesize' ( #2153 )
2020-07-11 14:17:37 +12:00
Jonathan Turner
6820d70e7d
make duration pretty print clearer ( #2150 )
...
* make duration pretty print clearer
* fix typo and tests
* fix typo and tests
2020-07-11 09:06:52 +12:00
Pierre-André Gagnon
e07a9e4ee7
1747 add ns to duration ( #2128 )
...
* Added nanos to Duration
* Removed unwraps
* Added nanos to Duration
* Removed unwraps
* Fixed errors
* Removed unwraps
* Changed serialization to String
* Fixed Date and Duration comparison
2020-07-11 05:48:11 +12:00
Arash Outadi
6a89b1b010
Remove duplicate method (retag) ( #2147 )
2020-07-10 06:21:13 -04:00
Andrés N. Robalino
34e1e6e426
Add "move column" command. ( #2123 )
2020-07-06 10:27:01 -05:00
Jonathan Turner
d30c40b40e
Bump to 0.16.1 ( #2116 )
2020-07-06 08:12:44 +12:00
Jonathan Turner
0522023d4c
Bump to 0.16.0 ( #2084 )
2020-07-01 06:25:09 +12:00
Jonathan Turner
dffc9c9b1c
Properly redirect invocations ( #2070 )
...
* Properly redirect invocations
* Don't convert with-env yet, as there's a random test failure
2020-06-28 09:04:57 +12:00
Jonathan Turner
7fed9992c9
Bump deps and touchup ( #2066 )
2020-06-27 19:54:31 +12:00
Jonathan Turner
4e2a4236f8
Fix it expansion and add collect ( #2065 )
2020-06-27 17:38:19 +12:00
Andrés N. Robalino
778e497903
Refactoring and more group-by flexibility.
2020-06-17 13:34:17 -05:00
Jonathan Turner
29ea29261d
Bump to 0.15.1 ( #1984 )
2020-06-15 09:54:30 +12:00
Jonathan Turner
935a5f6b9e
Another batch of removing async_stream ( #1970 )
2020-06-12 20:34:41 +12:00
Jonathan Turner
e5a18eb3c2
Bump to 0.15.0 ( #1955 )
2020-06-10 05:33:59 +12:00
Jonathan Turner
ef4eefa96a
Bump more deps ( #1921 )
2020-05-31 08:54:47 +12:00
Andrés N. Robalino
ad43ef08e5
Support average for tables.
2020-05-30 10:33:09 -05:00
Jonathan Turner
e2dabecc0b
Make it-expansion work when in a list ( #1903 )
2020-05-27 20:29:05 +12:00