mirror of
https://github.com/nushell/nushell.git
synced 2025-07-01 07:00:37 +02:00
add random commands (#366)
* feat: add random command * feat: add bool sub-command
This commit is contained in:
@ -76,6 +76,10 @@ pub enum ShellError {
|
||||
#[diagnostic(code(nu::shell::external_commands), url(docsrs))]
|
||||
ExternalNotSupported(#[label = "external not supported"] Span),
|
||||
|
||||
#[error("Invalid Probability.")]
|
||||
#[diagnostic(code(nu::shell::invalid_probability), url(docsrs))]
|
||||
InvalidProbability(#[label = "invalid probability"] Span),
|
||||
|
||||
#[error("Internal error: {0}.")]
|
||||
#[diagnostic(code(nu::shell::internal_error), url(docsrs))]
|
||||
InternalError(String),
|
||||
|
@ -42,6 +42,7 @@ pub enum Category {
|
||||
Filters,
|
||||
Formats,
|
||||
Math,
|
||||
Random,
|
||||
Platform,
|
||||
Shells,
|
||||
Strings,
|
||||
@ -63,6 +64,7 @@ impl std::fmt::Display for Category {
|
||||
Category::Filters => "filters",
|
||||
Category::Formats => "formats",
|
||||
Category::Math => "math",
|
||||
Category::Random => "random",
|
||||
Category::Platform => "platform",
|
||||
Category::Shells => "shells",
|
||||
Category::Strings => "strings",
|
||||
|
Reference in New Issue
Block a user