refactor: create library with simple entrypoint in main

Create a library entrypoint 'src/lib.rs' and refactor binary entrypoint
'src/main.rs' accordingly.
This commit is contained in:
2023-05-27 12:52:10 +02:00
parent 423badfe07
commit a9a5e401dc
2 changed files with 11 additions and 5 deletions

View File

@@ -1,11 +1,7 @@
#![allow(unused)]
mod cli;
mod scripts;
use ahab::{cli, scripts};
use anyhow::Result;
use clap::Parser;
use std::env;
fn main() -> Result<()> {
// always load dotenv on start