Config file support and other fixes

- Write JSON every 100 iterations instead of 1000 iterations
- Write plan.json with indent=2
This commit is contained in:
taoky
2024-08-06 14:41:51 +08:00
parent a6358aad8d
commit c8a11d3d1f
3 changed files with 55 additions and 9 deletions

View File

@ -2,6 +2,8 @@
Shadowmire syncs PyPI (or plain HTTP(S) PyPI mirrors using Shadowmire) with a lightweight and easy approach.
Requires Python 3.11+.
## Docs
### Background
@ -89,6 +91,12 @@ Verify command could be used if you believe that something is wrong (inconsisten
Verify command accepts same arguments as sync.
If you don't like appending a long argument list, you could use `--config` ([example](./config.example.toml)):
```shell
./shadowmire.py --config config.toml sync
```
Also, if you need debugging, you could use `do-update` and `do-remove` command to operate on a single package.
## Acknowledgements