Created
November 4, 2024 13:39
use rak in a script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env raku | |
use rak; | |
my $rak = rak | |
#{.meets-the-test}, | |
:find, | |
#:extensions<pbf otf ttf woff t1>, | |
:file(/'.' [pfb|t1|ttf|woff|otf] $/), | |
:paths</usr/share/fonts /Users ~/Library/Fonts>, | |
:absolute, | |
:is-readable, | |
#:encoding<ascii>, | |
:quietly, | |
:silently<err>, | |
#:unique, | |
; | |
for $rak.result -> (:key($path), :value(@found)) { | |
if @found { | |
say "$path:"; | |
say .key ~ ':' .value for @found; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment