init
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
use clap::Parser;
|
||||
use color_eyre::Result;
|
||||
|
||||
use bore::client::{ClientArgs, run};
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<()> {
|
||||
color_eyre::install()?;
|
||||
if std::env::var_os("RUST_LOG").is_some() {
|
||||
tracing_subscriber::fmt()
|
||||
.with_env_filter(tracing_subscriber::EnvFilter::from_default_env())
|
||||
.init();
|
||||
}
|
||||
|
||||
let args = ClientArgs::parse();
|
||||
run(args).await
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
use clap::Parser;
|
||||
use color_eyre::Result;
|
||||
|
||||
use bore::server::{ServerArgs, run};
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<()> {
|
||||
color_eyre::install()?;
|
||||
tracing_subscriber::fmt()
|
||||
.with_env_filter(
|
||||
tracing_subscriber::EnvFilter::try_from_default_env().unwrap_or_else(|_| "info".into()),
|
||||
)
|
||||
.init();
|
||||
|
||||
let args = ServerArgs::parse();
|
||||
run(args).await
|
||||
}
|
||||
Reference in New Issue
Block a user