nushell/crates
Jakub Žádník 9fd6923821
Port random integer & decimal to engine-p + related refactoring (#3393)
* Implement minmax for Range; Simplify range command

* Port random integer to enginep; New FromValue impl

Now, FromValue is implemented for Tagged<Range> to allow extracting args
into this type.

* Make sure range value extraction fails properly

The range endpoint extraction methods now return error instead of
silently clipping the value. This now makes `random integer ..-4` fail
properly since -4 can't be cast as u64.

* Port random decimal to enginep & Refactor

This added a way to interpret Range limits as f64 and a Primitive helper
to get its value as f64.

A side effect of this commit is that it is now possible to specify the
command bounds as true decimals. E.g., `random decimal 0.0..3.14` does
not clip 3.14 to 3.
2021-05-08 07:58:12 +12:00
..
nu-ansi-term bump to 0.30.1 (#3348) 2021-04-22 21:07:54 +12:00
nu-cli Clippy fixes for new Rust version (#3392) 2021-05-07 07:58:21 +12:00
nu-command Port random integer & decimal to engine-p + related refactoring (#3393) 2021-05-08 07:58:12 +12:00
nu-data Clippy fixes for new Rust version (#3392) 2021-05-07 07:58:21 +12:00
nu-engine Port random integer & decimal to engine-p + related refactoring (#3393) 2021-05-08 07:58:12 +12:00
nu-errors bump to 0.30.1 (#3348) 2021-04-22 21:07:54 +12:00
nu-json Clippy fixes for new Rust version (#3392) 2021-05-07 07:58:21 +12:00
nu-parser Add first prototype of functionality to parse numbers in parantheses (#3209) 2021-05-06 09:00:55 +12:00
nu-plugin Clippy fixes for new Rust version (#3392) 2021-05-07 07:58:21 +12:00
nu-pretty-hex add nu-pretty-hex, add into binary, update binaryview (#3370) 2021-05-01 11:12:25 -05:00
nu-protocol Port random integer & decimal to engine-p + related refactoring (#3393) 2021-05-08 07:58:12 +12:00
nu-source Clippy fixes for new Rust version (#3392) 2021-05-07 07:58:21 +12:00
nu-stream bump to 0.30.1 (#3348) 2021-04-22 21:07:54 +12:00
nu-table bump to 0.30.1 (#3348) 2021-04-22 21:07:54 +12:00
nu-test-support bump to 0.30.1 (#3348) 2021-04-22 21:07:54 +12:00
nu-value-ext bump to 0.30.1 (#3348) 2021-04-22 21:07:54 +12:00
nu_plugin_binaryview Clippy fixes for new Rust version (#3392) 2021-05-07 07:58:21 +12:00
nu_plugin_chart bump to 0.30.1 (#3348) 2021-04-22 21:07:54 +12:00
nu_plugin_fetch bump to 0.30.1 (#3348) 2021-04-22 21:07:54 +12:00
nu_plugin_from_bson bump to 0.30.1 (#3348) 2021-04-22 21:07:54 +12:00
nu_plugin_from_sqlite bump to 0.30.1 (#3348) 2021-04-22 21:07:54 +12:00
nu_plugin_inc bump to 0.30.1 (#3348) 2021-04-22 21:07:54 +12:00
nu_plugin_match bump to 0.30.1 (#3348) 2021-04-22 21:07:54 +12:00
nu_plugin_post bump to 0.30.1 (#3348) 2021-04-22 21:07:54 +12:00
nu_plugin_ps bump to 0.30.1 (#3348) 2021-04-22 21:07:54 +12:00
nu_plugin_query_json bump to 0.30.1 (#3348) 2021-04-22 21:07:54 +12:00
nu_plugin_s3 bump to 0.30.1 (#3348) 2021-04-22 21:07:54 +12:00
nu_plugin_selector bump to 0.30.1 (#3348) 2021-04-22 21:07:54 +12:00
nu_plugin_start Clippy fixes for new Rust version (#3392) 2021-05-07 07:58:21 +12:00
nu_plugin_sys bump to 0.30.1 (#3348) 2021-04-22 21:07:54 +12:00
nu_plugin_textview bump to 0.30.1 (#3348) 2021-04-22 21:07:54 +12:00
nu_plugin_to_bson bump to 0.30.1 (#3348) 2021-04-22 21:07:54 +12:00
nu_plugin_to_sqlite bump to 0.30.1 (#3348) 2021-04-22 21:07:54 +12:00
nu_plugin_tree bump to 0.30.1 (#3348) 2021-04-22 21:07:54 +12:00
nu_plugin_xpath bump to 0.30.1 (#3348) 2021-04-22 21:07:54 +12:00