# find

Find repositories matching a pattern.

```rhai
tree.find(pattern: &str) -> Array
```

## Examples

```rhai
let tree = git_tree_new("/tmp/repos");
let repos = tree.find("*hero*");
for repo in repos {
    print(repo.path());
}
```

```rhai
let tree = git_tree_new("/home/user/projects");
let libs = tree.find("lib-*");
print(`Found ${libs.len()} library repos`);
```
