### ----------------------------------------------------
### -- SparrowCI
### -- Licenses: Artistic-2.0
### -- Authors: Alexey Melezhik
### -- File: lib/SparrowCI/Repo.rakumod
### ----------------------------------------------------
unit module SparrowCI::Repo;
use YAMLish;

sub get-repo (Mu $user,$repo-id,$type) is export {
    return unless "{%*ENV<HOME>}/.sparky/projects/{$type}-{$user}-{$repo-id}/sparky.yaml".IO ~~ :f;    
    load-yaml("{%*ENV<HOME>}/.sparky/projects/{$type}-{$user}-{$repo-id}/sparky.yaml".IO.slurp)
}


