forked from extern/nushell
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> {
|
||||
vec![Example {
|
||||
description: "Show info about the system",
|
||||
example: "sys",
|
||||
result: None,
|
||||
}]
|
||||
vec![
|
||||
Example {
|
||||
description: "Show info about the system",
|
||||
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…
Reference in New Issue
Block a user