Set repo with argument/config (no longer use env)

This commit is contained in:
taoky
2024-08-08 14:33:34 +08:00
parent 8145552631
commit 008617cccd
3 changed files with 19 additions and 11 deletions

View File

@ -35,10 +35,10 @@ Obviously, `list_packages_with_serial()`'s alternative is the `local.json`, whic
If you just need to fetch all indexes (and then use a cache solution for packages):
```shell
REPO=/path/to/pypi ./shadowmire.py sync
./shadowmire.py --repo /path/to/pypi sync
```
If `REPO` env is not set, it defaults to current working directory.
If `--repo` argument is not set, it defaults to current working directory.
If you need to download all packages, add `--sync-packages`.