Add a project_dir argument
This commit is contained in:
parent
66bb33b332
commit
f916a94c64
|
@ -50,7 +50,13 @@ sub render-idris-file($idr) {
|
||||||
$out-file.spurt: $contents;
|
$out-file.spurt: $contents;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub MAIN() {
|
sub MAIN(
|
||||||
|
$project_dir? #= Base directory of project to upload, defaults to %*CWD
|
||||||
|
) {
|
||||||
|
if $project_dir ~~ Str {
|
||||||
|
$*CWD = $project_dir.IO.resolve;
|
||||||
|
};
|
||||||
|
|
||||||
# Find and collect all of our idris files
|
# Find and collect all of our idris files
|
||||||
my @idris-files =
|
my @idris-files =
|
||||||
paths("src", :file(-> $a {$a.ends-with(".idr") || $a.ends-with(".md")}))
|
paths("src", :file(-> $a {$a.ends-with(".idr") || $a.ends-with(".md")}))
|
||||||
|
|
Loading…
Reference in a new issue