MCPcopy Create free account
hub / github.com/dtormoen/tsk-tsk / execute

Method execute

src/commands/clean.rs:11–19  ·  view source on GitHub ↗
(&self, ctx: &AppContext)

Source from the content-addressed store, hash-verified

9#[async_trait]
10impl Command for CleanCommand {
11 async fn execute(&self, ctx: &AppContext) -> Result<(), Box<dyn Error>> {
12 let task_manager = TaskManager::new(ctx)?;
13 let result = task_manager.clean_tasks(false, None).await?;
14 println!("Cleaned {} task(s)", result.deleted);
15 if result.skipped > 0 {
16 println!("Skipped {} with pending children", result.skipped);
17 }
18 Ok(())
19 }
20}

Callers

nothing calls this directly

Calls 1

clean_tasksMethod · 0.80

Tested by

no test coverage detected