Quick actions

cmd+k|ctrl+k

Navigation

Languages

Install distribution to repository

Snippet info

Language

Raku

Visibility

unlisted

Author

rightfold

Created

2020-01-02T14:07:45Z

Updated

2020-01-02T14:23:17Z

sub install-dist(IO() :$dist-path!, IO() :$repo-path! --> Nil) {
    my $repo-spec := “inst#$repo-path”;
    my $dist = Distribution::Path.new($dist-path);
    my $repo = CompUnit::RepositoryRegistry.repository-for-spec($repo-spec);
    $repo.install($dist);
}
INFO