#![warn(missing_docs)]
pub mod entity_parser;
pub mod error;
pub mod settings_parser;
use molten_core::form::FormDefinition;
use molten_core::workflow::WorkflowDefinition;
use std::path::Path;
pub use entity_parser::{ConfigFormat, load_from_file, parse_content};
pub use error::ConfigError;
pub fn load_form(path: impl AsRef<Path>) -> Result<FormDefinition, ConfigError> {
load_from_file(path.as_ref())
}
pub fn load_workflow(path: impl AsRef<Path>) -> Result<WorkflowDefinition, ConfigError> {
load_from_file(path.as_ref())
}