feat: Adds cloud-storage to justfile to copy files to customer share.
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
build_dir_name := ".build"
|
||||
dir_name := `basename $PWD`
|
||||
cloud_dir := "/mnt/customers"
|
||||
|
||||
[private]
|
||||
default:
|
||||
@@ -21,6 +23,14 @@ pdf:
|
||||
@gum spin --title="Generating pdf..." -- bash -xc "hpa generate pdf &>/dev/null"
|
||||
@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.
|
||||
[group("generate")]
|
||||
[group("debug")]
|
||||
|
||||
Reference in New Issue
Block a user