public Settings GetSettings() { var settingsBuilder = new SettingsBuilder(); _message.Write("Would You Like to Load Previous Settings? (True/False)"); var loadPreviousSettings = _input.Read(); Boolean.TryParse(loadPreviousSettings, out var shouldUsePreviousSettings); if (shouldUsePreviousSettings) { var filePath = Path.Combine(Environment.CurrentDirectory, "settings.json"); _settings = settingsBuilder.LoadFromFile(filePath).Settings; _settings.UsePreviousSettings = true; } if (_settings == null || !_settings.UsePreviousSettings) { _message.Write("What is the directory path?"); var directoryPath = _input.Read(); settingsBuilder.WhereAreFiles(directoryPath); _message.Write("Would you like to create the file too? (True/False)"); var shouldCreateFile = _input.Read(); Boolean.TryParse(shouldCreateFile, out var createFileValue); _message.Write("What Is The ConnectionString?"); var connectionString = _input.Read(); settingsBuilder.ConnectionString(connectionString); _settings = settingsBuilder.Settings; AskWhatSqlRunnerType(out var sqlType); settingsBuilder.SqlType(sqlType); SaveSettings(); } return(_settings); }