You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
395 B

use super::*;
use std::{
str,
fmt,
path::{
PathBuf,
Path,
},
};
mod parse;
mod error;
pub use error::*;
mod job;
pub use job::*;
mod global;
pub use global::*;
/// Parse a single config file
#[inline]
pub fn parse_global_single(path: impl AsRef<Path>) -> Result<Config, error::Error>
{
let mut cfg = Config::default();
parse::global(&mut cfg, path)?;
Ok(cfg)
}