fix: tui should work again
Some checks reported errors
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build was killed

This commit is contained in:
Glenn Y. Rolland 2024-12-11 00:52:51 +01:00
parent a3d827bdb0
commit 7243935bf9

View file

@ -13,13 +13,14 @@ module GX::Commands
def initialize(@config : GX::Config) def initialize(@config : GX::Config)
@config.load_from_env @config.load_from_env
@config.load_from_file @config.load_from_file
# @file_system_manager = FileSystemManager.new(@config) @file_system_manager = FileSystemManager.new(@config)
end end
def execute def execute
# raise Models::InvalidFilesystemError.new("Invalid filesystem") if filesystem.nil? filesystem = @file_system_manager.choose_filesystem
# @file_system_manager.mount_or_umount(filesystem) raise Models::InvalidFilesystemError.new("Invalid filesystem") if filesystem.nil?
# @file_system_manager.auto_open(filesystem) if filesystem.mounted? && @config.auto_open? @file_system_manager.mount_or_umount(filesystem)
@file_system_manager.auto_open(filesystem) if filesystem.mounted? && @config.auto_open?
end end
def self.handles_mode def self.handles_mode