WIP: feat: add scaffold for operations (command design pattern) #31
4 changed files with 4 additions and 4 deletions
|
@ -2,7 +2,7 @@ require "./abstract_command"
|
|||
|
||||
module GX::Commands
|
||||
class GlobalConfig < AbstractCommand
|
||||
def initialize(config : GX::Config) # FIXME
|
||||
def initialize(config : GX::Config)
|
||||
end
|
||||
|
||||
def execute
|
||||
|
|
|
@ -2,7 +2,7 @@ require "./abstract_command"
|
|||
|
||||
module GX::Commands
|
||||
class GlobalHelp < AbstractCommand
|
||||
def initialize(@config : GX::Config) # FIXME
|
||||
def initialize(@config : GX::Config)
|
||||
end
|
||||
|
||||
def execute
|
||||
|
|
|
@ -5,7 +5,7 @@ module GX::Commands
|
|||
class MappingMount < AbstractCommand
|
||||
@file_system_manager : FileSystemManager
|
||||
|
||||
def initialize(@config : GX::Config) # FIXME
|
||||
def initialize(@config : GX::Config)
|
||||
@config.load_from_env
|
||||
@config.load_from_file
|
||||
@file_system_manager = FileSystemManager.new(@config)
|
||||
|
|
|
@ -5,7 +5,7 @@ module GX::Commands
|
|||
class MappingUmount < AbstractCommand
|
||||
@file_system_manager : FileSystemManager
|
||||
|
||||
def initialize(@config : GX::Config) # FIXME
|
||||
def initialize(@config : GX::Config)
|
||||
@config.load_from_env
|
||||
@config.load_from_file
|
||||
@file_system_manager = FileSystemManager.new(@config)
|
||||
|
|
Loading…
Reference in a new issue