Improve match list creator

This commit is contained in:
2020-10-31 22:58:06 +01:00
parent 7f98b928bd
commit d54e8991d7
5 changed files with 104 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
package de.jeyp91;
import de.jeyp91.apifootball.APIFootballUpdater;
import de.jeyp91.gists.MatchesListGistUpdater;
import de.jeyp91.tippliga.*;
import net.sourceforge.argparse4j.ArgumentParsers;
import net.sourceforge.argparse4j.inf.ArgumentParser;
@@ -50,6 +51,10 @@ public class App {
APIFootballUpdater apiFootballUpdater = new APIFootballUpdater(season);
apiFootballUpdater.updateAllFixtures(configFile);
break;
case "MatchesListGistUpdater":
MatchesListGistUpdater matchesListGistUpdater = new MatchesListGistUpdater(configFile);
matchesListGistUpdater.updateAllLeagues();
break;
default:
break;
}
@@ -70,7 +75,7 @@ public class App {
parser.addArgument("-m", "--mode")
.dest("mode")
.choices("MatchdaysUpdater", "MatchesCreatorFootball", "MatchesUpdaterFootball", "TeamsUpdater", "APIFootballUpdater")
.choices("MatchdaysUpdater", "MatchesCreatorFootball", "MatchesUpdaterFootball", "TeamsUpdater", "APIFootballUpdater", "MatchesListGistUpdater")
.help("")
.required(true)
.type(String.class);