mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 22:50:14 +02:00
bool type for binary operations (#5779)
* bool type for binary operations * fixed type in commands
This commit is contained in:
@ -39,7 +39,7 @@ impl Command for BuildString {
|
||||
}),
|
||||
},
|
||||
Example {
|
||||
example: "build-string (1 + 2) = one ' ' plus ' ' two",
|
||||
example: r#"build-string $"(1 + 2)" = one ' ' plus ' ' two"#,
|
||||
description: "Builds a string from letters a b c",
|
||||
result: Some(Value::String {
|
||||
val: "3=one plus two".to_string(),
|
||||
|
@ -161,7 +161,7 @@ impl Command for Char {
|
||||
SyntaxShape::Any,
|
||||
"the name of the character to output",
|
||||
)
|
||||
.rest("rest", SyntaxShape::String, "multiple Unicode bytes")
|
||||
.rest("rest", SyntaxShape::Any, "multiple Unicode bytes")
|
||||
.switch("list", "List all supported character names", Some('l'))
|
||||
.switch("unicode", "Unicode string i.e. 1f378", Some('u'))
|
||||
.switch("integer", "Create a codepoint from an integer", Some('i'))
|
||||
|
Reference in New Issue
Block a user