bool type for binary operations (#5779)

* bool type for binary operations

* fixed type in commands
This commit is contained in:
Fernando Herrera
2022-06-14 20:31:14 -05:00
committed by GitHub
parent fe88d58b1e
commit 8d5848c955
4 changed files with 75 additions and 3 deletions

View File

@ -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(),

View File

@ -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'))