multi command template

This commit is contained in:
Nathan McCarty 2024-12-22 18:58:20 +00:00
parent ef56d2e00d
commit 65377b3bc2

View file

@ -108,7 +108,8 @@ my method render-index(%index:) {
ul(Map, @elements)
}
sub MAIN(
#| Upload an entire project to its directory on the website
multi MAIN(
$project_dir?, #= Base directory of project to upload, defaults to $*CWD
$dest_dir?, #= Destination directory on the remote
$katla-config = #= Configuration file to pass to katla
@ -200,3 +201,8 @@ sub MAIN(
# Upload files
run <rsync -rvh --mkpath --delete>, "$dir/", "$remote:$web-base/$dest";
}
#| Upload the highlighting of a single idris file to a content addressable store
#| directory
multi MAIN('file') {
}