feat(pling): support repeatable -f multi-file uploads

This commit is contained in:
2026-04-13 18:00:17 +00:00
parent c88a49c771
commit c108ccc8cf
4 changed files with 129 additions and 38 deletions
+11 -3
View File
@@ -95,15 +95,23 @@ Live mode is the default when `--dry-run` is omitted:
```bash
uv run --env-file .env python scripts/pling_upload.py \
--artifact build/org.kde.plasma.starter.plasmoid
-f build/org.kde.plasma.starter.plasmoid
```
Important: live mode is destructive by design right now. It first deletes all
existing files on the target project, then uploads/registers the new artifact.
existing files on the target project, then uploads/registers the provided file(s).
You can pass multiple files by repeating `-f`:
```bash
uv run --env-file .env python scripts/pling_upload.py \
-f test2.md \
-f test3.md
```
Config can be provided by args or environment variables (`.env.example`):
`PLING_BASE_URL`, `PLING_PROJECT_ID`, `PLING_USERNAME`, `PLING_PASSWORD`,
`PLING_ARTIFACT`, `PLING_TIMEOUT`, `PLING_MAX_RETRIES`.
`PLING_FILES`, `PLING_TIMEOUT`, `PLING_MAX_RETRIES`.
## License