mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 20:27:44 +02:00
Add wrap and get and cell_path parsing
This commit is contained in:
@ -274,10 +274,11 @@ pub fn host(sys: &mut System, span: Span) -> Option<Value> {
|
||||
span,
|
||||
});
|
||||
}
|
||||
// dict.insert_untagged(
|
||||
// "uptime",
|
||||
// UntaggedValue::duration(1000000000 * sys.uptime() as i64),
|
||||
// );
|
||||
cols.push("uptime".into());
|
||||
vals.push(Value::Duration {
|
||||
val: 1000000000 * sys.uptime() as u64,
|
||||
span,
|
||||
});
|
||||
|
||||
let mut users = vec![];
|
||||
for user in sys.users() {
|
||||
|
Reference in New Issue
Block a user