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

Function create_basic_task

src/task_builder.rs:704–716  ·  view source on GitHub ↗

Helper function to create a basic task for testing

(name: &str, prompt: &str)

Source from the content-addressed store, hash-verified

702
703 /// Helper function to create a basic task for testing
704 async fn create_basic_task(name: &str, prompt: &str) -> Task {
705 let (test_repo, ctx) = create_test_context().await;
706 let current_dir = test_repo.path().to_path_buf();
707
708 TaskBuilder::new()
709 .repo_root(current_dir)
710 .name(name.to_string())
711 .task_type("generic".to_string())
712 .prompt(Some(prompt.to_string()))
713 .build(&ctx)
714 .await
715 .unwrap()
716 }
717
718 /// Helper to verify task instructions content
719 async fn verify_instructions_content(ctx: &AppContext, task: &Task, expected_content: &str) {

Calls 7

pathMethod · 0.80
promptMethod · 0.80
task_typeMethod · 0.80
repo_rootMethod · 0.80
create_test_contextFunction · 0.70
buildMethod · 0.45
nameMethod · 0.45