Improve match list creator
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user