bobashare_admin/cli/cleanup.rs
1use bobashare::storage::file::FileBackend;
2use clap::Args;
3use tracing::instrument;
4
5#[derive(Debug, Clone, Args)]
6pub(crate) struct Cleanup {}
7
8#[instrument(skip(backend))]
9pub(crate) async fn cleanup(backend: FileBackend, args: Cleanup) -> anyhow::Result<()> {
10 backend.cleanup().await?;
11 Ok(())
12}