mirror of
https://github.com/nushell/nushell.git
synced 2025-08-08 09:15:31 +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>
std-rfc
Overview and Requirements
This module includes potential candidate commands (and other definitions) for inclusion in the Standard Library (std
) that is built in to Nushell. As a general guideline, candidates should:
- Be general purpose features that will be useful to a number of users
- Include doc comments for definitions and parameters that can be used with
help <command>
- Include tests
- Since doc comments are fairly limited, additional documentation can be included
in a GitHub discussion. This documentation can then be moved to the main website when the feature
is promoted to
std
. See this example for sometable
helpers.
Showcase and Discussion
While primary feedback should take place in the PR, we have also established a Drawing Board Discord channel which can be used for several purposes:
- Ideation before a PR is submitted
- Raise awareness of the feature
- Short-term questions and discussion
Note: The Drawing Board is not just for std-rfc
. Please tag your topic with std-library
if it is about a Standard Library idea.
Promotion Evaluation
In general, new std-rfc
features will be evaluated after they have been trialed for a sufficient period, which may vary depending on the feature. After that period, the feature may be:
- Promoted to
std
- Removed from
std-rfc
- Or changes may be requested and then reevaluated later