From 91f29457f37134cf8b55769e632b7aca5c20b4a6 Mon Sep 17 00:00:00 2001 From: Skyline Date: Fri, 29 Nov 2024 17:11:44 +0800 Subject: [PATCH] a bit more of the fetch thing and whatnot --- src/main/scala/com/skyline/warlangmod/App.scala | 9 +++++++++ src/main/scala/com/skyline/warlangmod/Main.scala | 9 ++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/main/scala/com/skyline/warlangmod/App.scala b/src/main/scala/com/skyline/warlangmod/App.scala index b252f90..5a8a541 100644 --- a/src/main/scala/com/skyline/warlangmod/App.scala +++ b/src/main/scala/com/skyline/warlangmod/App.scala @@ -15,4 +15,13 @@ object App { outputService.write(updatedModdedFile, outputFileName) } + + def runOnline(inputFileName: String):Unit = { + val parsingService = ParsingService.instance + val translationOverwrite = TranslationOverwriteService.instance + val outputService = Output.instance + + + + } } diff --git a/src/main/scala/com/skyline/warlangmod/Main.scala b/src/main/scala/com/skyline/warlangmod/Main.scala index 56e939b..1098ea9 100644 --- a/src/main/scala/com/skyline/warlangmod/Main.scala +++ b/src/main/scala/com/skyline/warlangmod/Main.scala @@ -33,11 +33,14 @@ object Main extends CommandApp( (localOperation, inFile, originalFile, outFile).mapN { (localOps, inputFileName, originalFileName, outputFileName) => if (localOps) { + // run a local instance of the program println("-----Running Locally----") App.runOffline(inputFileName, originalFileName, outputFileName) - } else println("running online") + } else { + // program will fetch a file from the github repository + println("------Running Online------") + App.runOnline(inputFileName) + } } - - } ) \ No newline at end of file