🎉 init
This commit is contained in:
commit
812c4adb15
16 changed files with 4631 additions and 0 deletions
18
src/sheepd.rs
Normal file
18
src/sheepd.rs
Normal file
|
@ -0,0 +1,18 @@
|
|||
use sheepd_core::args::{SheepdArgs, SheepdCommand};
|
||||
mod api;
|
||||
mod sheepd_core;
|
||||
|
||||
fn main() {
|
||||
tracing_subscriber::fmt::init();
|
||||
let args: SheepdArgs = argh::from_env();
|
||||
|
||||
if let Some(command) = args.command {
|
||||
match command {
|
||||
SheepdCommand::Join(join_command) => sheepd_core::cmd::join(join_command),
|
||||
}
|
||||
} else {
|
||||
log::info!("Starting sheepd");
|
||||
|
||||
// TODO : daemon loop
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue