mirror of
https://github.com/lennart-k/rustical.git
synced 2026-01-30 14:08:23 +00:00
Move commands to lib.rs
This commit is contained in:
@@ -6,13 +6,17 @@ use clap::Parser;
|
||||
use rustical_caldav::CalDavConfig;
|
||||
use rustical_frontend::FrontendConfig;
|
||||
|
||||
pub mod health;
|
||||
mod health;
|
||||
pub mod membership;
|
||||
pub mod principals;
|
||||
mod principals;
|
||||
|
||||
pub use health::{HealthArgs, cmd_health};
|
||||
pub use principals::{PrincipalsArgs, cmd_principals};
|
||||
|
||||
#[derive(Debug, Parser)]
|
||||
pub struct GenConfigArgs {}
|
||||
|
||||
#[allow(clippy::missing_errors_doc, clippy::missing_panics_doc)]
|
||||
pub fn cmd_gen_config(_args: GenConfigArgs) -> anyhow::Result<()> {
|
||||
let config = Config {
|
||||
http: HttpConfig::default(),
|
||||
|
||||
Reference in New Issue
Block a user