master > master: code go - entwicklung für interaktiven Modus gestartet
This commit is contained in:
@@ -20,11 +20,11 @@ import (
|
||||
)
|
||||
|
||||
/* ---------------------------------------------------------------- *
|
||||
* ENDPOINT run
|
||||
* ENDPOINT run non-interactive modus
|
||||
* ---------------------------------------------------------------- */
|
||||
|
||||
// Liest Config Datei ein und führt Algorithmen auf Fälle durch
|
||||
func Run(path string) error {
|
||||
func RunNoninteractive(path string) error {
|
||||
var err error
|
||||
var err_case error
|
||||
|
||||
@@ -38,7 +38,7 @@ func Run(path string) error {
|
||||
}
|
||||
|
||||
// Fälle extrahieren
|
||||
cases := []types.CaseConfig{}
|
||||
cases := []types.UserConfigCase{}
|
||||
if config.Parts != nil && config.Parts.Cases != nil {
|
||||
cases = *config.Parts.Cases
|
||||
}
|
||||
@@ -46,7 +46,7 @@ func Run(path string) error {
|
||||
err_case = nil
|
||||
problem := cases[i]
|
||||
setup.DisplayStartOfCase(i, problem.Description)
|
||||
inputs := types.InputsConfig{}
|
||||
inputs := types.UserConfigInputs{}
|
||||
if problem.Inputs != nil {
|
||||
inputs = *problem.Inputs
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user