mirror of
https://github.com/nushell/nushell.git
synced 2025-08-08 11:45:38 +02:00
# Description Adds `random choice` suggested in #16241. # User-Facing Changes New `random` module in `std-rfc` with the `choice` subcommand. # Tests + Formatting Unsure how do to do tests. Sampling and a histogram should be enough, but they'll be non-deterministic. # After Submitting <!-- If your PR had any user-facing changes, update [the documentation](https://github.com/nushell/nushell.github.io) after the PR is merged, if necessary. This will help us keep the docs up to date. --> --------- Co-authored-by: sholderbach <sholderbach@users.noreply.github.com>
12 lines
331 B
Plaintext
12 lines
331 B
Plaintext
export use conversions *
|
|
export use tables *
|
|
export use path *
|
|
export module clip
|
|
export module str
|
|
export module iter
|
|
export module random
|
|
|
|
# kv module depends on sqlite feature, which may not be available in some builds
|
|
const kv_module = if ("sqlite" in (version).features) { "std-rfc/kv" } else { null }
|
|
export use $kv_module *
|