Compare commits

..

2 commits

Author SHA1 Message Date
3f22971fa8 Merge pull request 'fix: delay config loading' (#21) from feature/14-add-support-for-global-config-file into develop
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #21
2023-11-18 22:36:20 +00:00
5e8c46dfcf fix: delay config loading
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/pr Build was killed
2023-11-18 23:35:54 +01:00

View file

@ -88,12 +88,11 @@ module GX
end end
def run() def run()
@config.load_from_file
case @config.mode case @config.mode
when Config::Mode::ShowVersion when Config::Mode::ShowVersion
STDOUT.puts "#{PROGRAM_NAME} #{VERSION}" STDOUT.puts "#{PROGRAM_NAME} #{VERSION}"
when Config::Mode::Mount when Config::Mode::Mount
@config.load_from_file
mount mount
end end
end end