mirror of
https://github.com/SikongJueluo/Mini-Nav.git
synced 2026-07-12 20:15:31 +08:00
refactor(sync): improve topdown rendering and make justfile adapt to windows
This commit is contained in:
25
.justfile
25
.justfile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user