use cobble_core::Instance; use tracing_subscriber::FmtSubscriber; pub const INSTANCE_JSON: &str = include_str!("instance.json"); #[tokio::main] async fn main() -> anyhow::Result<()> { FmtSubscriber::builder() .with_env_filter("info,cobble_core=debug") .init(); // Parse JSON let mut instance = serde_json::from_str::(INSTANCE_JSON)?; instance.installed = true; let log_files = instance.load_log_files().await?; tracing::info!("{:#?}", log_files); Ok(()) }