mirror of
https://github.com/nushell/nushell
synced 2024-12-28 14:03:09 +00:00
Add back disks and net to sys (#3639)
This commit is contained in:
parent
955a5ed8fb
commit
6c2c16a971
1 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,7 @@ impl Sys {
|
||||||
|
|
||||||
pub fn disks(sys: &mut System, tag: Tag) -> Option<UntaggedValue> {
|
pub fn disks(sys: &mut System, tag: Tag) -> Option<UntaggedValue> {
|
||||||
sys.refresh_disks();
|
sys.refresh_disks();
|
||||||
|
sys.refresh_disks_list();
|
||||||
|
|
||||||
let mut output = vec![];
|
let mut output = vec![];
|
||||||
for disk in sys.get_disks() {
|
for disk in sys.get_disks() {
|
||||||
|
@ -43,6 +44,7 @@ pub fn disks(sys: &mut System, tag: Tag) -> Option<UntaggedValue> {
|
||||||
|
|
||||||
pub fn net(sys: &mut System, tag: Tag) -> Option<UntaggedValue> {
|
pub fn net(sys: &mut System, tag: Tag) -> Option<UntaggedValue> {
|
||||||
sys.refresh_networks();
|
sys.refresh_networks();
|
||||||
|
sys.refresh_networks_list();
|
||||||
|
|
||||||
let mut output = vec![];
|
let mut output = vec![];
|
||||||
for (iface, data) in sys.get_networks() {
|
for (iface, data) in sys.get_networks() {
|
||||||
|
|
Loading…
Reference in a new issue