Skip to content

Commit

Permalink
a bit more of the fetch thing and whatnot
Browse files Browse the repository at this point in the history
  • Loading branch information
Skyline300 committed Nov 29, 2024
1 parent f7742db commit 91f2945
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
9 changes: 9 additions & 0 deletions src/main/scala/com/skyline/warlangmod/App.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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



}
}
9 changes: 6 additions & 3 deletions src/main/scala/com/skyline/warlangmod/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}


}
)

0 comments on commit 91f2945

Please sign in to comment.