Skip to content

Commit

Permalink
Merge pull request #6 from kleis-technology/fix/cli-assess-with-prelude
Browse files Browse the repository at this point in the history
cli: load lca files with prelude
  • Loading branch information
pevab authored Jan 18, 2024
2 parents 58253c1 + 2638325 commit 27adf93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/src/main/kotlin/ch/kleis/lcaac/cli/cmd/AssessCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import ch.kleis.lcaac.cli.csv.CsvRequestReader
import ch.kleis.lcaac.cli.csv.CsvResultWriter
import ch.kleis.lcaac.core.math.basic.BasicOperations
import ch.kleis.lcaac.grammar.Loader
import ch.kleis.lcaac.grammar.LoaderOption
import com.github.ajalt.clikt.core.CliktCommand
import com.github.ajalt.clikt.parameters.arguments.argument
import com.github.ajalt.clikt.parameters.arguments.help
Expand All @@ -25,7 +26,7 @@ class AssessCommand : CliktCommand(name = "assess", help = "Returns the unitary

override fun run() {
val files = lcaFiles(root)
val symbolTable = Loader(BasicOperations).load(files)
val symbolTable = Loader(BasicOperations).load(files, listOf(LoaderOption.WITH_PRELUDE))
val processor = CsvProcessor(symbolTable)
val iterator = loadRequests()
val writer = CsvResultWriter()
Expand Down

0 comments on commit 27adf93

Please sign in to comment.