Fix signature

This commit is contained in:
Andrej Kolchin 2024-08-05 19:18:10 +03:00
parent 3ba38cd79a
commit c865b1dc90

View File

@ -12,9 +12,9 @@ impl Command for SubCommand {
fn signature(&self) -> Signature { fn signature(&self) -> Signature {
Signature::build("random binary") Signature::build("random binary")
.input_output_types(vec![(Type::Nothing, Type::String)]) .input_output_types(vec![(Type::Nothing, Type::Binary)])
.allow_variants_without_examples(true) .allow_variants_without_examples(true)
.required("length", SyntaxShape::Int, "Number of bytes") .required("length", SyntaxShape::Int, "Length of the output binary.")
.category(Category::Random) .category(Category::Random)
} }