refactor(sync): improve topdown rendering and make justfile adapt to windows

This commit is contained in:
2026-04-06 19:54:23 +08:00
parent 2c78f4b662
commit eb016385f8
3 changed files with 65 additions and 44 deletions

View File

@@ -1,17 +1,20 @@
remote_root := "ial-gpu-workstation-1:/home/ial-pangyg/docker-workspace/projects/mini-nav"
rsync_flags := "-avLh --progress --stats --itemize-changes"
upload_excludes := "--exclude=.jj/ --exclude=.git/ --exclude=.devenv/ --exclude=.direnv/ --exclude=deps/ --exclude=outputs/ --exclude=data/versioned_data/ --exclude=datasets/"
upload:
rsync -avLh --progress --stats --itemize-changes \
--exclude='.jj/' \
--exclude='.git/' \
--exclude='.devenv/' \
--exclude='.direnv/' \
--exclude='deps/' \
--exclude='outputs/' \
--exclude='data/versioned_data/' \
. ial-gpu-workstation-1:/home/ial-pangyg/docker-workspace/projects/mini-nav/
if command -v cygpath >/dev/null 2>&1 || test -n "${MSYSTEM:-}" || test -n "${CYGWIN:-}"; then \
env MSYS2_ARG_CONV_EXCL='*' rsync {{ rsync_flags }} {{ upload_excludes }} . {{ remote_root }}/; \
else \
rsync {{ rsync_flags }} {{ upload_excludes }} . {{ remote_root }}/; \
fi
download:
rsync -avLh --progress --stats --itemize-changes \
ial-gpu-workstation-1:/home/ial-pangyg/docker-workspace/projects/mini-nav/outputs .
if command -v cygpath >/dev/null 2>&1 || test -n "${MSYSTEM:-}" || test -n "${CYGWIN:-}"; then \
env MSYS2_ARG_CONV_EXCL='*' rsync {{ rsync_flags }} {{ remote_root }}/outputs .; \
else \
rsync {{ rsync_flags }} {{ remote_root }}/outputs .; \
fi
sync-pkgs:
# micromamba env create -f ./environment.yml