WIP: feature/1-add-support-for-fs-crud #47
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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?
|
||||||
|
|
Loading…
Reference in a new issue