Skip to content

Commit 1061d68

Browse files
committed
add search helper
1 parent f4fa32a commit 1061d68

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.tom/search.raku

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
my $ext = prompt("ext (rakumod): ");
2+
3+
$ext = "rakumod" unless $ext;
4+
5+
my $search1 = prompt("search1: ");
6+
7+
my $search2 = prompt("search2: ");
8+
9+
my $exclude = prompt("exclude: ");
10+
11+
say "find [$search1] [$search2] !$exclude in $ext";
12+
13+
task-run "find $search1 $search2 in $ext", "find", %(
14+
:$ext,
15+
:$search1,
16+
search2 => $search2 || "",
17+
exclude => $exclude || "",
18+
);
19+

0 commit comments

Comments
 (0)