Skip to content

Commit

Permalink
feat(cli): use json user pref srvc instead of yml
Browse files Browse the repository at this point in the history
  • Loading branch information
thetric committed Mar 16, 2017
1 parent 0004194 commit 231681d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import com.github.thetric.iliasdownloader.cli.console.ConsoleService
import com.github.thetric.iliasdownloader.cli.console.SystemEnvironmentAwareConsoleService
import com.github.thetric.iliasdownloader.service.IliasService
import com.github.thetric.iliasdownloader.service.webparser.WebParserIliasServiceProvider
import com.github.thetric.iliasdownloader.ui.common.prefs.JsonUserPreferenceService
import com.github.thetric.iliasdownloader.ui.common.prefs.UserPreferenceService
import com.github.thetric.iliasdownloader.ui.common.prefs.YamlUserPreferenceService
import groovy.transform.TupleConstructor
import groovy.util.logging.Log4j2

Expand Down Expand Up @@ -72,8 +72,8 @@ final class Cli {
showCourseSelection: options.c as boolean,
fileSizeLimitinMiB: size,
)
Path settingsPath = cliOptions.syncDir.resolve('.ilias-downloader.yml')
UserPreferenceService preferenceService = new YamlUserPreferenceService(settingsPath)
Path settingsPath = cliOptions.syncDir.resolve('.ilias-downloader.json')
UserPreferenceService preferenceService = new JsonUserPreferenceService(settingsPath)
final ConsoleService consoleService = new SystemEnvironmentAwareConsoleService()
Function<String, IliasService> webIliasServiceProvider = { new WebParserIliasServiceProvider(it).newInstance() }

Expand Down

This file was deleted.

0 comments on commit 231681d

Please sign in to comment.