initial code scetch
This commit is contained in:
28
src/main.rs
Normal file
28
src/main.rs
Normal file
@@ -0,0 +1,28 @@
|
||||
mod app;
|
||||
mod audio;
|
||||
mod cache;
|
||||
mod deck;
|
||||
mod effect_chain;
|
||||
mod file_selector;
|
||||
mod osc;
|
||||
mod tui;
|
||||
|
||||
use anyhow::Result;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<()> {
|
||||
// Log to file so we don't pollute the TUI
|
||||
let log_file = std::fs::File::create("/tmp/djdeck.log")?;
|
||||
tracing_subscriber::fmt()
|
||||
.with_env_filter(
|
||||
tracing_subscriber::EnvFilter::from_default_env()
|
||||
.add_directive(tracing::Level::INFO.into()),
|
||||
)
|
||||
.with_writer(log_file)
|
||||
.init();
|
||||
|
||||
tracing::info!("djdeck starting");
|
||||
|
||||
let mut app = app::App::new()?;
|
||||
app.run().await
|
||||
}
|
||||
Reference in New Issue
Block a user