1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-24 08:23:33 +03:00
mobile-nixos/examples/hello/app/windows/disks.rb
2020-05-31 18:54:07 -04:00

14 lines
252 B
Ruby

module GUI
class DisksWindow < BaseLogWindow
COMMAND = "lsblk --list -o NAME,SIZE,TYPE,PARTLABEL"
def initialize()
super(explanation: "Output of #{COMMAND}")
end
def on_present()
set_text(`#{COMMAND}`)
end
end
end