WIP: feature/1-add-support-for-fs-crud #47

Draft
glenux wants to merge 53 commits from feature/1-add-support-for-fs-crud into develop
3 changed files with 4 additions and 4 deletions
Showing only changes of commit ef4ca70eed - Show all commits

View file

@ -20,7 +20,7 @@ module GX::Commands
filesystem = @file_system_manager.choose_filesystem filesystem = @file_system_manager.choose_filesystem
raise Models::InvalidFilesystemError.new("Invalid filesystem") if filesystem.nil? raise Models::InvalidFilesystemError.new("Invalid filesystem") if filesystem.nil?
@file_system_manager.mount_or_umount(filesystem) @file_system_manager.mount_or_umount(filesystem)
@file_system_manager.auto_open(filesystem) if filesystem.mounted? && @config.auto_open @file_system_manager.auto_open(filesystem) if filesystem.mounted? && @config.auto_open?
end end
def self.handles_mode def self.handles_mode

View file

@ -20,7 +20,7 @@ module GX::Commands
filesystem = @file_system_manager.choose_filesystem filesystem = @file_system_manager.choose_filesystem
raise Models::InvalidFilesystemError.new("Invalid filesystem") if filesystem.nil? raise Models::InvalidFilesystemError.new("Invalid filesystem") if filesystem.nil?
filesystem.mount filesystem.mount
@file_system_manager.auto_open(filesystem) if filesystem.mounted? && @config.auto_open @file_system_manager.auto_open(filesystem) if filesystem.mounted? && @config.auto_open?
end end
def self.handles_mode def self.handles_mode

View file

@ -31,11 +31,11 @@ module GX
getter home_dir : String getter home_dir : String
getter root : Models::RootConfig? getter root : Models::RootConfig?
property verbose : Bool property? verbose : Bool
property mode : Types::Mode property mode : Types::Mode
property path : String? property path : String?
property args : AddArgs.class | DelArgs.class | NoArgs.class property args : AddArgs.class | DelArgs.class | NoArgs.class
property auto_open : Bool property? auto_open : Bool
# FIXME: refactor and remove these parts from here # FIXME: refactor and remove these parts from here
property help_options : Parsers::Options::HelpOptions? property help_options : Parsers::Options::HelpOptions?