From cde5af706606820e6ab590956732491a29773e06 Mon Sep 17 00:00:00 2001 From: Alex Ling Date: Tue, 4 Aug 2020 12:57:40 +0000 Subject: [PATCH] Remove interactive prompt for easier use in docker --- src/config.cr | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/config.cr b/src/config.cr index 0d1d736..91a6667 100644 --- a/src/config.cr +++ b/src/config.cr @@ -52,12 +52,8 @@ class Config config.fill_defaults return config end - puts "The config file #{cfg_path} does not exist." \ - " Do you want mango to dump the default config there? [Y/n]" - input = gets - if input && input.downcase == "n" - abort "Aborting..." - end + puts "The config file #{cfg_path} does not exist. " \ + "Dumping the default config there." default = self.allocate default.path = path default.fill_defaults