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
|
module GX::Commands
|
||||||
class GlobalConfig < AbstractCommand
|
class GlobalConfig < AbstractCommand
|
||||||
def initialize(config : GX::Config) # FIXME
|
def initialize(config : GX::Config)
|
||||||
end
|
end
|
||||||
|
|
||||||
def execute
|
def execute
|
||||||
|
|
|
@ -2,7 +2,7 @@ require "./abstract_command"
|
||||||
|
|
||||||
module GX::Commands
|
module GX::Commands
|
||||||
class GlobalHelp < AbstractCommand
|
class GlobalHelp < AbstractCommand
|
||||||
def initialize(@config : GX::Config) # FIXME
|
def initialize(@config : GX::Config)
|
||||||
end
|
end
|
||||||
|
|
||||||
def execute
|
def execute
|
||||||
|
|
|
@ -5,7 +5,7 @@ module GX::Commands
|
||||||
class MappingMount < AbstractCommand
|
class MappingMount < AbstractCommand
|
||||||
@file_system_manager : FileSystemManager
|
@file_system_manager : FileSystemManager
|
||||||
|
|
||||||
def initialize(@config : GX::Config) # FIXME
|
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)
|
||||||
|
|
|
@ -5,7 +5,7 @@ module GX::Commands
|
||||||
class MappingUmount < AbstractCommand
|
class MappingUmount < AbstractCommand
|
||||||
@file_system_manager : FileSystemManager
|
@file_system_manager : FileSystemManager
|
||||||
|
|
||||||
def initialize(@config : GX::Config) # FIXME
|
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)
|
||||||
|
|
Loading…
Reference in a new issue