caretta_sync_cli/cli/config/check.rs
1use crate::cli::ConfigArgs;
2use caretta_sync_core::utils::runnable::Runnable;
3use clap::Args;
4
5#[derive(Debug, Args)]
6pub struct ConfigCheckCommandArgs {
7 #[command(flatten)]
8 config: ConfigArgs,
9}
10
11impl Runnable for ConfigCheckCommandArgs {
12 #[tokio::main]
13 async fn run(self, app_name: &'static str) {
14 let _ = self.config.into_config(app_name).await;
15 println!("Ok");
16 }
17}