mirror of
https://github.com/nushell/nushell.git
synced 2025-05-30 06:39:33 +02:00
add more examples to the sys command (#4491)
This commit is contained in:
parent
7e6430def0
commit
bd96ce4e9c
@ -35,11 +35,23 @@ impl Command for Sys {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn examples(&self) -> Vec<Example> {
|
fn examples(&self) -> Vec<Example> {
|
||||||
vec![Example {
|
vec![
|
||||||
description: "Show info about the system",
|
Example {
|
||||||
example: "sys",
|
description: "Show info about the system",
|
||||||
result: None,
|
example: "sys",
|
||||||
}]
|
result: None,
|
||||||
|
},
|
||||||
|
Example {
|
||||||
|
description: "Show the os system name with get",
|
||||||
|
example: "(sys).host | get name",
|
||||||
|
result: None,
|
||||||
|
},
|
||||||
|
Example {
|
||||||
|
description: "Show the os system name",
|
||||||
|
example: "(sys).host.name",
|
||||||
|
result: None,
|
||||||
|
},
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user