mirror of
https://github.com/nushell/nushell
synced 2024-12-28 05:53:09 +00:00
fix typo of port
command (#6120)
This commit is contained in:
parent
894d3e7452
commit
9097e865ca
1 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue