forked from extern/nushell
Add back disks and net to sys (#3639)
This commit is contained in:
parent
955a5ed8fb
commit
6c2c16a971
@ -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 New Issue
Block a user