1
0

Moved Modules into their own files

This commit is contained in:
2025-06-10 11:30:43 +02:00
parent 1f697ecc23
commit 01035f61bd
3 changed files with 56 additions and 59 deletions

View File

@@ -0,0 +1,15 @@
export def lumen-search-content [searchstr = string]: any -> table {
let $tmp = $in
mut $path = pwd
if ($tmp != null) {
$path = $tmp
}
cd $path
ls -a **/* | par-each {|i|
{file: $i.name,
content: (if (($i | get type) == file ) {
try {open $i.name --raw | find $searchstr} catch {|err| {}}
})
}
} | compact content -e
}