bobashare_admin/cli/
cleanup.rs

1
2
3
4
5
6
7
8
9
10
11
12
use bobashare::storage::file::FileBackend;
use clap::Args;
use tracing::instrument;

#[derive(Debug, Clone, Args)]
pub(crate) struct Cleanup {}

#[instrument(skip(backend))]
pub(crate) async fn cleanup(backend: FileBackend, args: Cleanup) -> anyhow::Result<()> {
    backend.cleanup().await?;
    Ok(())
}