forked from symposium-dev/symposium
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_structure.rs
More file actions
45 lines (38 loc) · 996 Bytes
/
Copy pathtest_structure.rs
File metadata and controls
45 lines (38 loc) · 996 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
use std::path::Path;
use tempfile::TempDir;
// Simple test to verify our new discovery logic
fn main() {
let tmp = TempDir::new().unwrap();
let dir = tmp.path();
// Create test structure
std::fs::write(
dir.join("root.toml"),
r#"name = "root-plugin""#,
).unwrap();
let skill_dir = dir.join("my-skill");
std::fs::create_dir_all(&skill_dir).unwrap();
std::fs::write(
skill_dir.join("SKILL.md"),
r#"---
name: my-skill
crates: serde
---
Test skill."#,
).unwrap();
let mixed_dir = dir.join("mixed");
std::fs::create_dir_all(&mixed_dir).unwrap();
std::fs::write(
mixed_dir.join("SKILL.md"),
r#"---
name: mixed-skill
crates: tokio
---
Mixed skill."#,
).unwrap();
std::fs::write(
mixed_dir.join("ignored.toml"),
r#"name = "ignored""#,
).unwrap();
println!("Test structure created at: {}", dir.display());
println!("You can now test the discovery logic manually");
}