2024-01-14 20:31:38 +01:00
|
|
|
require "./abstract_command"
|
|
|
|
|
|
|
|
module GX::Commands
|
|
|
|
class ConfigInit < AbstractCommand
|
|
|
|
def initialize(config : GX::Config) # FIXME
|
|
|
|
end
|
|
|
|
|
|
|
|
def execute
|
2024-01-23 23:48:28 +01:00
|
|
|
puts "FIXME: detect if config is present"
|
|
|
|
puts "FIXME: compute config path (either default, or from command line)"
|
|
|
|
puts "FIXME: create config file from default if needed"
|
2024-01-14 20:31:38 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
def self.handles_mode
|
|
|
|
GX::Types::Mode::ConfigInit
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|