Created
February 7, 2020 15:14
-
-
Save niner/f83e07bd4f5818bbd8738fa922d0da57 to your computer and use it in GitHub Desktop.
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
nine@sphinx:~/test/resources> cat META6.json | |
{ | |
"name": "Foo", | |
"provides": {"Foo": "Foo.pm6"}, | |
"resources": ["foo.txt"] | |
} | |
nine@sphinx:~/test/resources> cat Foo.pm6 | |
unit module Foo; | |
sub get-resources() is export { %?RESOURCES } | |
nine@sphinx:~/test/resources> perl6 -I. -e 'use Foo; dd get-resources' | |
Distribution::Resources.new(dist-id => ":ver<>:auth<>:api<>", repo => "file#/home/nine/test/resources", repo-name => Str) | |
nine@sphinx:~/test/resources> perl6 -I. -e 'use Foo; get-resources<foo.txt>.slurp.say' | |
foo! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment