fix typo of port command (#6120)

This commit is contained in:
Justin Ma 2022-07-25 20:07:26 +08:00 committed by GitHub
parent 894d3e7452
commit 9097e865ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,7 @@ impl Command for SubCommand {
} }
fn signature(&self) -> Signature { fn signature(&self) -> Signature {
Signature::build("post") Signature::build("port")
.optional( .optional(
"start", "start",
SyntaxShape::Int, SyntaxShape::Int,
@ -48,7 +48,7 @@ impl Command for SubCommand {
fn examples(&self) -> Vec<Example> { fn examples(&self) -> Vec<Example> {
vec![ vec![
Example { Example {
description: "get free port between 3121 and 4000", description: "get a free port between 3121 and 4000",
example: "port 3121 4000", example: "port 3121 4000",
result: Some(Value::Int { result: Some(Value::Int {
val: 3121, val: 3121,
@ -56,7 +56,7 @@ impl Command for SubCommand {
}), }),
}, },
Example { Example {
description: "get free port from system", description: "get a free port from system",
example: "port", example: "port",
result: None, result: None,
}, },