2
0
Fork 0
mirror of https://github.com/nushell/nushell synced 2025-02-14 21:18:49 +00:00
Commit graph

232 commits

Author SHA1 Message Date
Jonathan Turner
cb8491cfee
Bump to 0.22 () 2020-11-04 07:31:41 +13:00
Jonathan Turner
a6fdee4a51
bump to 0.21.1 ()
* bump to 0.21.1

* bump trash version
2020-10-26 21:10:06 +13:00
Andrés N. Robalino
77ffd06715
Allow appending table literals. () 2020-10-22 03:26:30 -05:00
morbatex
0d8064ed2d
Add rounding functionalties ()
* added math round

* added math floor

* added math ceil

* added math.md examples

* moved the detection of nonnumerical values in ceil/floor/round

* math round now works on streams

* math floor now works on streams

* math ceil now works on streams
2020-10-22 13:18:27 +13:00
Joseph T. Lyons
bf2363947b
Add pretty flag to to md ()
* First draft for adding a `pretty` flag to `to md`

* rustfmt

* Fix Clippy warnings

* rustfmt

* Using Clippy suggestion broken code, reverting and putting in a statement to ignore clippy warning

* Add test for `to md -p`
2020-10-15 16:20:55 +13:00
Jonathan Turner
770e5d89f2
Bump to 0.21 () 2020-10-14 06:19:09 +13:00
Andrés N. Robalino
5d945ef869
empty? rewrite. () 2020-10-06 05:21:20 -05:00
Chris Gillespie
2f1016d44f
Add examples to update cmd () 2020-10-01 20:13:42 -05:00
Andrés N. Robalino
a56abb6502
Bar Chart baseline. ()
Bar Chart ready.
2020-09-30 13:27:52 -05:00
Jonathan Turner
ebba89ea31
Bump to 0.20 () 2020-09-22 19:54:46 +12:00
Radek Vít
798766b4b5
Remove panics from random integer and make the constraint more idiomatic ()
* Remove panics from random integer and make the constraint more idiomatic

* Add open intervals to NumericRange
2020-09-20 08:41:49 +12:00
Chris Gillespie
50cbf91bc5
Remove trim in favor of str trim () 2020-09-16 15:59:32 -04:00
Chris Gillespie
3150e70fc7
Add cpu time to ps -l () 2020-09-07 17:02:45 +12:00
smaydew
1ffbb66e64
Initial implementation of random integer subcommand. ()
* Initial implementation of random integer subcommand.

* Added additional examples.

Co-authored-by: Stacy Maydew <stacy.maydew@starlab.io>
2020-09-04 07:23:02 +12:00
Jonathan Turner
882cf74137
Bump to 0.19.0 () 2020-09-02 15:37:06 +12:00
Chris Gillespie
f54cf8a096
Size command: rename max length to bytes ()
Since max length is just getting the byte length, rename to bytes
in order to be more clear.
2020-09-01 14:51:35 +12:00
Chris Gillespie
c14b209276
Add missing math commands to docs () 2020-08-30 15:32:38 +12:00
Gurpreet Singh
303a9defd3
Added math product support ()
* added math product: working initial impl

* resolving merge conflicts

* impl std::ops::Mul for Filesize

* rebased with main; refactored product implementation

* fixed error msg, added docs for math product
2020-08-27 17:58:01 +12:00
Jörn Zaefferer
ee26590011
touch: support multiple arguments ()
Fixes 
2020-08-22 12:08:30 +12:00
Leonhard Kipp
0dd1403a69
Sleep command ()
* Add deserialization of Primitive::Duration; Fixes 

* 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
Joseph T Lyons
c6588c661a Add column flag to count command 2020-08-15 07:52:59 -05:00
Joseph T Lyons
8f00713ad2 Update histogram examples 2020-08-15 07:51:12 -05:00
Jonathan Turner
da4d24d082
Bump to 0.18.2. Move starship external. ()
* 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 () 2020-08-12 15:59:28 +12:00
Joseph T. Lyons
cc3c10867c
Histogram no longer requires a wrap command before it on unnamed columns () 2020-08-12 09:42:59 +12:00
Jonathan Turner
2ad07912d9
Bump to 0.18 () 2020-08-11 18:44:53 +12:00
Joseph T. Lyons
9fb6f5cd09
Change f/full flag to l/long for ls and ps commands ()
* Change `f`/`full` flag to `l`/`long` for `ls` and `ps` commands

* Fix a few more `--full` instances
2020-08-02 06:30:45 +12:00
Jörn Zaefferer
4ef15b5f80
docs/alias: simplify the 'persistent' section, using --save ()
All the workarounds using `config` aren't necessary anymore. Only `config path` is still of interest.
2020-08-01 08:11:26 -04:00
Joseph T. Lyons
4347339e9a
Make all bullet point items uppercase () 2020-07-26 06:15:12 +12:00
Joseph T. Lyons
a77f0f7b41
to-xml.md documentation update ()
* Update to-xml.md documentation to be consistent

* Capitalize bullet point items

* Add link to this document wthin `to.md`
2020-07-25 20:19:15 +12:00
Warren Seine
55a2f284d9
Add to xml command () () 2020-07-24 19:41:22 +12:00
morrme
5d17b72852
update config documentation ()
* update config documentation

* update config syntax

* update config syntax

* Update alias.md

Co-authored-by: Jonathan Turner <jonathandturner@users.noreply.github.com>
2020-07-23 09:42:04 +12:00
Jonathan Turner
2a084fc838
Bump to 0.17.0 () 2020-07-22 06:41:49 +12:00
Joseph T. Lyons
6eb2c94209
Add flag for case-insensitive sort-by ()
* Add flag for case-insensitive sort-by

* Fix test names

* Fix documentation comments
2020-07-21 05:31:58 +12:00
Shaurya Shubham
ffe3e2c16b
Rename calc to math eval and allow it to optionally take an expression as an argument ()
* Rename `calc` to `math eval` and allow it to optionally take the expression as an argument

* Moved calc tests to math eval
Also added 2 tests and changed 1 test

* Move calc docs to math eval
2020-07-18 16:11:19 +12:00
Arash Outadi
b358804904
Auto-Generate Documentation for nushell.com ()
* Very rough idea

* Remove colour codes

* Work on command for generating docs

* Quick comment

* Use nested collapsible markdown

* Refine documentation command

* Clippy and rename docs

* This layout probably seems best

Also moved some code to documentation.rs to avoid making help.rs massive

* Delete summaries.md

* Add usage strings

* Remove static annotations

* get_documentation produces value

Which will be used like
'help generate_docs | save "something"'
The resulting yaml can be passed to a script for generating HTML/MD files in the website

* Fix subcommands

* DRY code

* Address clippy:

* Fix links

* Clippy lints

* Move documentation to more central location
2020-07-18 10:22:43 +12:00
Joseph T. Lyons
17e6c53b62
Add str reverse subcommand ()
* Add str reverse subcommand

* rustfmt
2020-07-15 08:47:04 +12:00
Arash Outadi
97cedeb324
Fix str --to-int usages () 2020-07-13 15:07:34 -04:00
Arash Outadi
7a207a673b
Update documentation to properly refer to subcommands with spaces () 2020-07-13 18:39:36 +12:00
Jonathan Turner
d30c40b40e
Bump to 0.16.1 () 2020-07-06 08:12:44 +12:00
Joseph T. Lyons
ba5d774fe1
Add a histogram example to the random dice documentation () 2020-07-02 16:24:28 +12:00
Jonathan Turner
0522023d4c
Bump to 0.16.0 () 2020-07-01 06:25:09 +12:00
Joseph T. Lyons
9876169f5d
Add dice subcommand to random command ()
* Add dice subcommand to random command

* Update random dice test name

* Stream results of random dice

* Thanks Clippy!
2020-06-30 16:12:51 +12:00
Nabil Abderrahaman
821d44af54
Docs autoview pwd touch ()
* [ADD] Add draft documentation for autoview

* [ADD] Add draft documentation for pwd

* [ADD] Add draft documentation for touch

* [MOD] Improve description and add examples

Add the use of `textview` and `binaryview`.
Add examples for single value, source file and binary file.
2020-06-28 14:22:26 +12:00
Joseph T. Lyons
306dc89ede
Add bool subcommand to random ()
* Add bool subcommand to random

* Fix function name copy paste error

* Fix issue 2062: allow deserialization of a decimal

* Add bias flag to `random bool`
2020-06-26 16:51:05 +12:00
Joseph T. Lyons
72a21ad619
Adds random command with uuid subcommand () 2020-06-25 17:51:09 +12:00
Joseph T. Lyons
72f7406057
Fix cal command week-start example () 2020-06-24 17:15:19 +12:00
Joseph T. Lyons
053bd926ec
First pass at updating all documentation formatting and cleaning up output of examples () 2020-06-24 06:21:47 +12:00
siedentop
bce6f5a3e6
Uniq: --count flag to count occurences ()
* uniq: Add counting option (WIP!)

Usage:

fetch https://raw.githubusercontent.com/timbray/topfew/master/test/data/access-1k | lines | wrap item | uniq | sort-by count | last 10

* uniq: Add first test

* uniq: Re-enable the non-counting variant.

* uniq: Also handle primitive lines.

* uniq: Update documentation

* uniq: Final comment about error handling. Let's get some feedback

* uniq: Address review comments.

Not happy with the way I create a TypeError. There must be a cleaner
way. Anyway, good for shipping.

* uniq: Use Labeled_error as suggested by jturner in chat.

* uniq: Return error directly.

Co-authored-by: Christoph Siedentop <christoph@siedentop.name>
2020-06-21 12:22:06 +12:00
Joseph T. Lyons
853d7e7120
Math median tests and documentation additions ()
* Add math median example and unit tests

* Update output of other all math ls command examples to keep consistent with math median output

* Fix output of math max example

* Update output of other math commands using pwd examples to keep data consistent
2020-06-20 00:28:03 -05:00