mirror of
https://github.com/Noratrieb/website.git
synced 2026-01-15 01:15:02 +01:00
Submodules
This commit is contained in:
commit
43d792e148
10 changed files with 712 additions and 0 deletions
22
src/main.rs
Normal file
22
src/main.rs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
mod submodule;
|
||||
mod utils;
|
||||
|
||||
#[macro_use]
|
||||
extern crate tracing;
|
||||
|
||||
use color_eyre::{eyre::Context, Result};
|
||||
use tracing_subscriber::EnvFilter;
|
||||
|
||||
fn main() -> Result<()> {
|
||||
tracing_subscriber::fmt().with_env_filter(EnvFilter::from_default_env()).init();
|
||||
|
||||
let sub_config =
|
||||
std::fs::read_to_string("submodules.toml").wrap_err("reading ./submodules.toml")?;
|
||||
let sub_config =
|
||||
submodule::Submodules::parse(&sub_config).wrap_err("invalid submodules.toml")?;
|
||||
submodule::sync(&sub_config).wrap_err("syncing subtrees")?;
|
||||
|
||||
info!("Hello, world!");
|
||||
|
||||
Ok(())
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue