From bd96ce4e9cee77cec318c925cf3203b44f396c0e Mon Sep 17 00:00:00 2001 From: Michael Angerman <1809991+stormasm@users.noreply.github.com> Date: Tue, 15 Feb 2022 21:06:38 -0800 Subject: [PATCH] add more examples to the sys command (#4491) --- crates/nu-command/src/system/sys.rs | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/crates/nu-command/src/system/sys.rs b/crates/nu-command/src/system/sys.rs index c6c44237..f1de3638 100644 --- a/crates/nu-command/src/system/sys.rs +++ b/crates/nu-command/src/system/sys.rs @@ -35,11 +35,23 @@ impl Command for Sys { } fn examples(&self) -> Vec { - 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, + }, + ] } }