feat: Adds cloud-storage to justfile to copy files to customer share.

This commit is contained in:
2025-11-18 09:09:53 -05:00
parent b562a5b89f
commit 3241fb441c

View File

@@ -1,4 +1,6 @@
build_dir_name := ".build" build_dir_name := ".build"
dir_name := `basename $PWD`
cloud_dir := "/mnt/customers"
[private] [private]
default: default:
@@ -21,6 +23,14 @@ pdf:
@gum spin --title="Generating pdf..." -- bash -xc "hpa generate pdf &>/dev/null" @gum spin --title="Generating pdf..." -- bash -xc "hpa generate pdf &>/dev/null"
@xdg-open Report.pdf & @xdg-open Report.pdf &
# Copy files to cloud storage directory.
[group("generate")]
cloud-storage:
mkdir {{cloud_dir}}/{{dir_name}} &>/dev/null || true
cp -R Airflow {{cloud_dir}}/{{dir_name}}
cp -R ManJ {{cloud_dir}}/{{dir_name}}
[ -f Report.pdf ] && cp Report.pdf {{cloud_dir}}/{{dir_name}}
# Build & generate a Latex file. # Build & generate a Latex file.
[group("generate")] [group("generate")]
[group("debug")] [group("debug")]