add more examples to the sys command (#4491)

This commit is contained in:
Michael Angerman 2022-02-15 21:06:38 -08:00 committed by GitHub
parent 7e6430def0
commit bd96ce4e9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
},
]
}
}