use crate::ObjectType;
use crate::Parser;
use crate::Result;
use std::{path::Path};
pub(crate) fn load_object_type_with(path: &str) -> Result<ObjectType> {
let path = Path::new(&path);
let parser = Parser::build(path)?;
let object = parser.parse()?;
Ok(object)
}