cloud_terrastodon_entrypoint 0.34.0

Main entrypoint for the Cloud Terrastodon CLI
1
2
3
4
5
6
7
8
9
10
11
use cloud_terrastodon_pathing::AppDir;
use eyre::Result;
use std::path::PathBuf;
use tokio::fs;
use tracing::info;
pub async fn clean_processed() -> Result<()> {
    info!("Cleaning processed");
    let processed_dir: PathBuf = AppDir::Processed.into();
    fs::remove_dir_all(processed_dir).await?;
    Ok(())
}