2023-11-25 02:29:14 +00:00
|
|
|
#ifndef _BOOTSTRAP_EVALUATOR_H
|
|
|
|
#define _BOOTSTRAP_EVALUATOR_H
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
#include "validator.h"
|
|
|
|
|
|
|
|
enum SpecEvaluationError {
|
2023-11-25 03:29:24 +00:00
|
|
|
// Then `run.sh` file could not be found.
|
|
|
|
SEE_RUN_SH_NOT_FOUND = 1,
|
2023-11-25 02:29:14 +00:00
|
|
|
// The provided input does not match the expected prompt response type.
|
2023-11-25 03:29:24 +00:00
|
|
|
SEE_INVALID_PROMPT_RESPONSE,
|
2023-11-25 02:29:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enum SpecEvaluationError evaluate_spec_json(
|
|
|
|
const struct Config *const config, const struct DynArray *const prompts
|
|
|
|
);
|
|
|
|
|
|
|
|
#endif /* _BOOTSTRAP_EVALUATOR_H */
|